survey-angular-ui 3.0.0-beta.7 → 3.0.0-beta.8
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.d.ts +1 -0
- package/angular-ui.module.d.ts +65 -64
- package/bundles/survey-angular-ui.umd.js +44 -20
- package/bundles/survey-angular-ui.umd.js.map +1 -1
- package/component-factory.d.ts +2 -2
- package/components/popup/popup.service.d.ts +2 -3
- package/components/renderAs/boolean-switch/boolean-switch.component.d.ts +7 -0
- package/esm2015/angular-ui.js +2 -1
- package/esm2015/angular-ui.module.js +6 -5
- package/esm2015/component-factory.js +7 -2
- package/esm2015/components/paneldynamicplaceholder/paneldynamicplaceholder.component.js +2 -2
- package/esm2015/components/popup/popup.service.js +7 -6
- package/esm2015/components/renderAs/boolean-switch/boolean-switch.component.js +22 -0
- package/esm2015/utils/dynamic.directive.js +10 -11
- package/fesm2015/survey-angular-ui.js +42 -22
- package/fesm2015/survey-angular-ui.js.map +1 -1
- package/package.json +2 -2
- package/utils/dynamic.directive.d.ts +3 -3
package/angular-ui.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export * from "./components/renderAs/rating-dropdown/rating-dropdown.component";
|
|
|
65
65
|
export * from "./components/renderAs/boolean-checkbox/boolean-checkbox.component";
|
|
66
66
|
export * from "./components/renderAs/boolean-radio/boolean-radio.component";
|
|
67
67
|
export * from "./components/renderAs/boolean-radio/boolean-radio-item.component";
|
|
68
|
+
export * from "./components/renderAs/boolean-switch/boolean-switch.component";
|
|
68
69
|
export * from "./components/renderAs/buttongroup-dropdown/button-group-dropdown.component";
|
|
69
70
|
export * from "./components/progress/default/progress.component";
|
|
70
71
|
export * from "./components/progress/buttons/progress.component";
|
package/angular-ui.module.d.ts
CHANGED
|
@@ -65,71 +65,72 @@ import * as i63 from "./questions/boolean.component";
|
|
|
65
65
|
import * as i64 from "./components/renderAs/boolean-checkbox/boolean-checkbox.component";
|
|
66
66
|
import * as i65 from "./components/renderAs/boolean-radio/boolean-radio.component";
|
|
67
67
|
import * as i66 from "./components/renderAs/boolean-radio/boolean-radio-item.component";
|
|
68
|
-
import * as i67 from "./
|
|
69
|
-
import * as i68 from "./questions/imagepicker.component";
|
|
70
|
-
import * as i69 from "./questions/
|
|
71
|
-
import * as i70 from "./
|
|
72
|
-
import * as i71 from "./components/
|
|
73
|
-
import * as i72 from "./components/progress/
|
|
74
|
-
import * as i73 from "./components/progress/
|
|
75
|
-
import * as i74 from "./
|
|
76
|
-
import * as i75 from "./
|
|
77
|
-
import * as i76 from "./
|
|
78
|
-
import * as i77 from "./
|
|
79
|
-
import * as i78 from "./utils/safe-
|
|
80
|
-
import * as i79 from "./
|
|
81
|
-
import * as i80 from "./questions/
|
|
82
|
-
import * as i81 from "./
|
|
83
|
-
import * as i82 from "./
|
|
84
|
-
import * as i83 from "./questions/
|
|
85
|
-
import * as i84 from "./
|
|
86
|
-
import * as i85 from "./
|
|
87
|
-
import * as i86 from "./questions/ranking
|
|
88
|
-
import * as i87 from "./questions/ranking-item
|
|
89
|
-
import * as i88 from "./questions/
|
|
90
|
-
import * as i89 from "./
|
|
91
|
-
import * as i90 from "./
|
|
92
|
-
import * as i91 from "./questions/
|
|
93
|
-
import * as i92 from "./questions/
|
|
94
|
-
import * as i93 from "./questions/
|
|
95
|
-
import * as i94 from "./questions/
|
|
96
|
-
import * as i95 from "./questions/
|
|
97
|
-
import * as i96 from "./
|
|
98
|
-
import * as i97 from "./
|
|
99
|
-
import * as i98 from "./questions/
|
|
100
|
-
import * as i99 from "./
|
|
101
|
-
import * as i100 from "./components/
|
|
102
|
-
import * as i101 from "./
|
|
103
|
-
import * as i102 from "./questions/
|
|
104
|
-
import * as i103 from "./questions/
|
|
105
|
-
import * as i104 from "./questions/button-group/button-group.component";
|
|
106
|
-
import * as i105 from "./questions/
|
|
107
|
-
import * as i106 from "./
|
|
108
|
-
import * as i107 from "./components/
|
|
109
|
-
import * as i108 from "./components/
|
|
110
|
-
import * as i109 from "./components/
|
|
111
|
-
import * as i110 from "./components/
|
|
112
|
-
import * as i111 from "./components
|
|
113
|
-
import * as i112 from "./
|
|
114
|
-
import * as i113 from "./
|
|
115
|
-
import * as i114 from "./components/
|
|
116
|
-
import * as i115 from "./components/header/header
|
|
117
|
-
import * as i116 from "./components/header/header-
|
|
118
|
-
import * as i117 from "./components/
|
|
119
|
-
import * as i118 from "./components/file/file
|
|
120
|
-
import * as i119 from "./
|
|
121
|
-
import * as i120 from "./
|
|
122
|
-
import * as i121 from "./components/file/file-
|
|
123
|
-
import * as i122 from "./components/
|
|
124
|
-
import * as i123 from "./components/
|
|
125
|
-
import * as i124 from "./components/
|
|
126
|
-
import * as i125 from "./components/
|
|
127
|
-
import * as i126 from "./
|
|
128
|
-
import * as i127 from "./
|
|
129
|
-
import * as i128 from "
|
|
130
|
-
import * as i129 from "@angular/
|
|
68
|
+
import * as i67 from "./components/renderAs/boolean-switch/boolean-switch.component";
|
|
69
|
+
import * as i68 from "./questions/imagepicker-item.component";
|
|
70
|
+
import * as i69 from "./questions/imagepicker.component";
|
|
71
|
+
import * as i70 from "./questions/image.component";
|
|
72
|
+
import * as i71 from "./components/survey-header/survey-header.component";
|
|
73
|
+
import * as i72 from "./components/progress/default/progress.component";
|
|
74
|
+
import * as i73 from "./components/progress/buttons/progress.component";
|
|
75
|
+
import * as i74 from "./components/progress/toc/progress.component";
|
|
76
|
+
import * as i75 from "./questions/matrix.component";
|
|
77
|
+
import * as i76 from "./components/svg-icon/svg-icon.component";
|
|
78
|
+
import * as i77 from "./questions/file.component";
|
|
79
|
+
import * as i78 from "./utils/safe-url.pipe";
|
|
80
|
+
import * as i79 from "./utils/safe-html.pipe";
|
|
81
|
+
import * as i80 from "./questions/comment.component";
|
|
82
|
+
import * as i81 from "./questions/signature.component";
|
|
83
|
+
import * as i82 from "./errors.component";
|
|
84
|
+
import * as i83 from "./questions/multipletext.component";
|
|
85
|
+
import * as i84 from "./questions/multipletextitem.component";
|
|
86
|
+
import * as i85 from "./utils/dynamic.directive";
|
|
87
|
+
import * as i86 from "./questions/ranking.component";
|
|
88
|
+
import * as i87 from "./questions/ranking-item.component";
|
|
89
|
+
import * as i88 from "./questions/ranking-item-content.component";
|
|
90
|
+
import * as i89 from "./questions/paneldynamic.component";
|
|
91
|
+
import * as i90 from "./embedded-view-content.component";
|
|
92
|
+
import * as i91 from "./questions/customwidget.component";
|
|
93
|
+
import * as i92 from "./questions/matrixcell.component";
|
|
94
|
+
import * as i93 from "./questions/matrixdropdowncell.component";
|
|
95
|
+
import * as i94 from "./questions/matrixtable.component";
|
|
96
|
+
import * as i95 from "./questions/matrixdropdown.component";
|
|
97
|
+
import * as i96 from "./questions/matrixdynamic.component";
|
|
98
|
+
import * as i97 from "./components/matrix-actions/drag-drop-icon/drag-drop-icon";
|
|
99
|
+
import * as i98 from "./questions/matrixrequiredheader.component";
|
|
100
|
+
import * as i99 from "./questions/expression.component";
|
|
101
|
+
import * as i100 from "./components/brand-info/brand-info.component";
|
|
102
|
+
import * as i101 from "./components/question-error/question-error.component";
|
|
103
|
+
import * as i102 from "./questions/custom.component";
|
|
104
|
+
import * as i103 from "./questions/composite.component";
|
|
105
|
+
import * as i104 from "./questions/button-group/button-group-item.component";
|
|
106
|
+
import * as i105 from "./questions/button-group/button-group.component";
|
|
107
|
+
import * as i106 from "./questions/matrix-row.component";
|
|
108
|
+
import * as i107 from "./components/popup/modal-container.component";
|
|
109
|
+
import * as i108 from "./components/survey-header/logo-image.component";
|
|
110
|
+
import * as i109 from "./components/skeleton/skeleton.component";
|
|
111
|
+
import * as i110 from "./components/timer-panel/timer-panel.component";
|
|
112
|
+
import * as i111 from "./components/notifier/notifier.component";
|
|
113
|
+
import * as i112 from "./components-container.component";
|
|
114
|
+
import * as i113 from "./questions/multipletextrow.component";
|
|
115
|
+
import * as i114 from "./components/loading-indicator/loading-indicator.component";
|
|
116
|
+
import * as i115 from "./components/header/header.component";
|
|
117
|
+
import * as i116 from "./components/header/header-cell.component";
|
|
118
|
+
import * as i117 from "./components/header/header-mobile.component";
|
|
119
|
+
import * as i118 from "./components/file/choose-file.component";
|
|
120
|
+
import * as i119 from "./components/file/file-preview.component";
|
|
121
|
+
import * as i120 from "./svgbundle.component";
|
|
122
|
+
import * as i121 from "./components/file/file-item.component";
|
|
123
|
+
import * as i122 from "./components/file/file-page.component";
|
|
124
|
+
import * as i123 from "./components/breadcrumbs/breadcrumbs.component";
|
|
125
|
+
import * as i124 from "./components/single-input-summary/single-input-summary.component";
|
|
126
|
+
import * as i125 from "./components/matrixdynamicplaceholder/matrixdynamicplaceholder.component";
|
|
127
|
+
import * as i126 from "./components/paneldynamicplaceholder/paneldynamicplaceholder.component";
|
|
128
|
+
import * as i127 from "./questions/imagemap.component";
|
|
129
|
+
import * as i128 from "./components/svg-icon/svg-icon-registered.component";
|
|
130
|
+
import * as i129 from "@angular/common";
|
|
131
|
+
import * as i130 from "@angular/forms";
|
|
131
132
|
export declare class SurveyModule {
|
|
132
133
|
static ɵfac: i0.ɵɵFactoryDeclaration<SurveyModule, never>;
|
|
133
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SurveyModule, [typeof i1.VisibleDirective, typeof i2.Key2ClickDirective, typeof i3.PanelDynamicProgressText, typeof i4.ElementComponent, typeof i5.TemplateRendererComponent, typeof i6.SurveyComponent, typeof i7.SurveyContentComponent, typeof i8.PopupSurveyComponent, typeof i9.PageComponent, typeof i10.PanelComponent, typeof i11.QuestionComponent, typeof i12.StringViewerComponent, typeof i13.SurveyStringComponent, typeof i14.StringEditorComponent, typeof i15.TextAreaComponent, typeof i16.QuestionSkeletonComponent, typeof i17.ScrollComponent, typeof i18.TextQuestionComponent, typeof i19.RadiogroupComponent, typeof i20.RadiogroupItemComponent, typeof i21.CheckboxComponent, typeof i22.CheckboxItemComponent, typeof i23.DropdownComponent, typeof i24.DropdownQuestionComponent, typeof i25.DropdownSelectComponent, typeof i26.DropdownOptionItemComponent, typeof i27.PopupComponent, typeof i28.PopupBaseContainerComponent, typeof i29.PopupPointerComponent, typeof i30.PopupCloseButtonComponent, typeof i31.CharacterCounterComponent, typeof i32.ListComponent, typeof i33.ListItemComponent, typeof i34.ListItemContentComponent, typeof i35.ListItemGroupComponent, typeof i36.RatingItemComponent, typeof i37.RatingItemStarComponent, typeof i38.RatingItemSmileyComponent, typeof i39.TagboxFilterComponent, typeof i40.TagboxComponent, typeof i41.TagboxQuestionComponent, typeof i42.TagboxItemComponent, typeof i43.ActionBarComponent, typeof i44.ActionComponent, typeof i45.ActionBarItemComponent, typeof i46.ActionBarItemDropdownComponent, typeof i47.HtmlQuestionComponent, typeof i48.SelectBaseItemComponent, typeof i49.SelectBaseComponent, typeof i50.SurveyCommentComponent, typeof i51.SurveyCommentChoiceComponent, typeof i52.ElementHeaderComponent, typeof i53.ElementTitleActionsComponent, typeof i54.ElementTitleComponent, typeof i55.DynamicHeadComponent, typeof i56.RowComponent, typeof i57.RatingQuestionComponent, typeof i58.SliderQuestionComponent, typeof i59.SliderLabelItemComponent, typeof i60.RatingDropdownItemComponent, typeof i61.RatingDropdownComponent, typeof i62.ButtonGroupDropdownComponent, typeof i63.BooleanQuestionComponent, typeof i64.BooleanCheckboxComponent, typeof i65.BooleanRadioComponent, typeof i66.BooleanRadioItemComponent, typeof i67.
|
|
134
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SurveyModule, [typeof i1.VisibleDirective, typeof i2.Key2ClickDirective, typeof i3.PanelDynamicProgressText, typeof i4.ElementComponent, typeof i5.TemplateRendererComponent, typeof i6.SurveyComponent, typeof i7.SurveyContentComponent, typeof i8.PopupSurveyComponent, typeof i9.PageComponent, typeof i10.PanelComponent, typeof i11.QuestionComponent, typeof i12.StringViewerComponent, typeof i13.SurveyStringComponent, typeof i14.StringEditorComponent, typeof i15.TextAreaComponent, typeof i16.QuestionSkeletonComponent, typeof i17.ScrollComponent, typeof i18.TextQuestionComponent, typeof i19.RadiogroupComponent, typeof i20.RadiogroupItemComponent, typeof i21.CheckboxComponent, typeof i22.CheckboxItemComponent, typeof i23.DropdownComponent, typeof i24.DropdownQuestionComponent, typeof i25.DropdownSelectComponent, typeof i26.DropdownOptionItemComponent, typeof i27.PopupComponent, typeof i28.PopupBaseContainerComponent, typeof i29.PopupPointerComponent, typeof i30.PopupCloseButtonComponent, typeof i31.CharacterCounterComponent, typeof i32.ListComponent, typeof i33.ListItemComponent, typeof i34.ListItemContentComponent, typeof i35.ListItemGroupComponent, typeof i36.RatingItemComponent, typeof i37.RatingItemStarComponent, typeof i38.RatingItemSmileyComponent, typeof i39.TagboxFilterComponent, typeof i40.TagboxComponent, typeof i41.TagboxQuestionComponent, typeof i42.TagboxItemComponent, typeof i43.ActionBarComponent, typeof i44.ActionComponent, typeof i45.ActionBarItemComponent, typeof i46.ActionBarItemDropdownComponent, typeof i47.HtmlQuestionComponent, typeof i48.SelectBaseItemComponent, typeof i49.SelectBaseComponent, typeof i50.SurveyCommentComponent, typeof i51.SurveyCommentChoiceComponent, typeof i52.ElementHeaderComponent, typeof i53.ElementTitleActionsComponent, typeof i54.ElementTitleComponent, typeof i55.DynamicHeadComponent, typeof i56.RowComponent, typeof i57.RatingQuestionComponent, typeof i58.SliderQuestionComponent, typeof i59.SliderLabelItemComponent, typeof i60.RatingDropdownItemComponent, typeof i61.RatingDropdownComponent, typeof i62.ButtonGroupDropdownComponent, typeof i63.BooleanQuestionComponent, typeof i64.BooleanCheckboxComponent, typeof i65.BooleanRadioComponent, typeof i66.BooleanRadioItemComponent, typeof i67.BooleanSwitchComponent, typeof i68.ImagePickerItemComponent, typeof i69.ImagePickerQuestionComponent, typeof i70.ImageQuestionComponent, typeof i71.SurveyHeaderComponent, typeof i72.ProgressDefaultComponent, typeof i73.ProgressButtonsComponent, typeof i74.ProgressTocComponent, typeof i75.MatrixQuestionComponent, typeof i76.SvgIconComponent, typeof i77.FileQuestionComponent, typeof i78.SafeUrlPipe, typeof i79.SafeHtmlPipe, typeof i80.CommentQuestionComponent, typeof i81.SignaturePadQuestionComponent, typeof i82.ErrorsComponent, typeof i83.MultipleTextComponent, typeof i84.MultipleTextItemComponent, typeof i85.DynamicComponentDirective, typeof i86.RankingQuestionComponent, typeof i87.RankingItemComponent, typeof i88.RankingItemContentComponent, typeof i89.PanelDynamicQuestionComponent, typeof i90.EmbeddedViewContentComponent, typeof i91.CustomWidgetComponent, typeof i92.MatrixCellComponent, typeof i93.MatrixDropdownCellComponent, typeof i94.MatrixTableComponent, typeof i95.MatrixDropdownComponent, typeof i96.MatrixDynamicComponent, typeof i97.MatrixDynamicDragDropIconComponent, typeof i98.MatrixRequiredHeader, typeof i99.ExpressionComponent, typeof i78.SafeResourceUrlPipe, typeof i100.BrandInfoComponent, typeof i101.QuestionErrorComponent, typeof i102.CustomQuestionComponent, typeof i103.CompositeQuestionComponent, typeof i104.ButtonGroupItemComponent, typeof i105.ButtonGroupQuestionComponent, typeof i106.MatrixRowComponent, typeof i107.ModalComponent, typeof i108.LogoImageComponent, typeof i109.SkeletonComponent, typeof i110.TimerPanelComponent, typeof i111.NotifierComponent, typeof i112.ComponentsContainerComponent, typeof i113.MultipleTextRowComponent, typeof i114.LoadingIndicatorComponent, typeof i115.HeaderComponent, typeof i116.HeaderCellComponent, typeof i117.HeaderMobileComponent, typeof i118.ChooseFileBtn, typeof i119.FilePreviewComponent, typeof i120.SvgBundleComponent, typeof i121.FileItemComponent, typeof i122.FilePageComponent, typeof i123.BreadcrumbsComponent, typeof i124.SingleInputSummaryComponent, typeof i125.MatrixDynamicPlaceholderComponent, typeof i126.PanelDynamicPlaceholderComponent, typeof i127.ImageMapQuestionComponent, typeof i128.SvgIconRegisteredComponent], [typeof i129.CommonModule, typeof i130.FormsModule], [typeof i1.VisibleDirective, typeof i2.Key2ClickDirective, typeof i3.PanelDynamicProgressText, typeof i4.ElementComponent, typeof i5.TemplateRendererComponent, typeof i6.SurveyComponent, typeof i7.SurveyContentComponent, typeof i8.PopupSurveyComponent, typeof i9.PageComponent, typeof i10.PanelComponent, typeof i11.QuestionComponent, typeof i12.StringViewerComponent, typeof i13.SurveyStringComponent, typeof i14.StringEditorComponent, typeof i15.TextAreaComponent, typeof i16.QuestionSkeletonComponent, typeof i17.ScrollComponent, typeof i18.TextQuestionComponent, typeof i19.RadiogroupComponent, typeof i20.RadiogroupItemComponent, typeof i21.CheckboxComponent, typeof i22.CheckboxItemComponent, typeof i31.CharacterCounterComponent, typeof i23.DropdownComponent, typeof i24.DropdownQuestionComponent, typeof i25.DropdownSelectComponent, typeof i26.DropdownOptionItemComponent, typeof i27.PopupComponent, typeof i28.PopupBaseContainerComponent, typeof i29.PopupPointerComponent, typeof i30.PopupCloseButtonComponent, typeof i31.CharacterCounterComponent, typeof i32.ListComponent, typeof i33.ListItemComponent, typeof i34.ListItemContentComponent, typeof i35.ListItemGroupComponent, typeof i36.RatingItemComponent, typeof i37.RatingItemStarComponent, typeof i38.RatingItemSmileyComponent, typeof i39.TagboxFilterComponent, typeof i40.TagboxComponent, typeof i41.TagboxQuestionComponent, typeof i42.TagboxItemComponent, typeof i43.ActionBarComponent, typeof i44.ActionComponent, typeof i45.ActionBarItemComponent, typeof i46.ActionBarItemDropdownComponent, typeof i47.HtmlQuestionComponent, typeof i48.SelectBaseItemComponent, typeof i49.SelectBaseComponent, typeof i50.SurveyCommentComponent, typeof i51.SurveyCommentChoiceComponent, typeof i52.ElementHeaderComponent, typeof i54.ElementTitleComponent, typeof i55.DynamicHeadComponent, typeof i56.RowComponent, typeof i57.RatingQuestionComponent, typeof i58.SliderQuestionComponent, typeof i59.SliderLabelItemComponent, typeof i60.RatingDropdownItemComponent, typeof i61.RatingDropdownComponent, typeof i62.ButtonGroupDropdownComponent, typeof i63.BooleanQuestionComponent, typeof i64.BooleanCheckboxComponent, typeof i65.BooleanRadioComponent, typeof i66.BooleanRadioItemComponent, typeof i67.BooleanSwitchComponent, typeof i68.ImagePickerItemComponent, typeof i69.ImagePickerQuestionComponent, typeof i70.ImageQuestionComponent, typeof i71.SurveyHeaderComponent, typeof i72.ProgressDefaultComponent, typeof i73.ProgressButtonsComponent, typeof i75.MatrixQuestionComponent, typeof i76.SvgIconComponent, typeof i77.FileQuestionComponent, typeof i78.SafeUrlPipe, typeof i79.SafeHtmlPipe, typeof i80.CommentQuestionComponent, typeof i81.SignaturePadQuestionComponent, typeof i82.ErrorsComponent, typeof i83.MultipleTextComponent, typeof i84.MultipleTextItemComponent, typeof i85.DynamicComponentDirective, typeof i86.RankingQuestionComponent, typeof i87.RankingItemComponent, typeof i88.RankingItemContentComponent, typeof i89.PanelDynamicQuestionComponent, typeof i90.EmbeddedViewContentComponent, typeof i91.CustomWidgetComponent, typeof i92.MatrixCellComponent, typeof i93.MatrixDropdownCellComponent, typeof i94.MatrixTableComponent, typeof i95.MatrixDropdownComponent, typeof i96.MatrixDynamicComponent, typeof i97.MatrixDynamicDragDropIconComponent, typeof i98.MatrixRequiredHeader, typeof i99.ExpressionComponent, typeof i78.SafeResourceUrlPipe, typeof i102.CustomQuestionComponent, typeof i103.CompositeQuestionComponent, typeof i105.ButtonGroupQuestionComponent, typeof i107.ModalComponent, typeof i108.LogoImageComponent, typeof i109.SkeletonComponent, typeof i110.TimerPanelComponent, typeof i111.NotifierComponent, typeof i112.ComponentsContainerComponent, typeof i113.MultipleTextRowComponent, typeof i114.LoadingIndicatorComponent, typeof i115.HeaderComponent, typeof i116.HeaderCellComponent, typeof i117.HeaderMobileComponent, typeof i119.FilePreviewComponent, typeof i120.SvgBundleComponent, typeof i121.FileItemComponent, typeof i122.FilePageComponent, typeof i123.BreadcrumbsComponent, typeof i124.SingleInputSummaryComponent, typeof i125.MatrixDynamicPlaceholderComponent, typeof i126.PanelDynamicPlaceholderComponent, typeof i127.ImageMapQuestionComponent, typeof i128.SvgIconRegisteredComponent]>;
|
|
134
135
|
static ɵinj: i0.ɵɵInjectorDeclaration<SurveyModule>;
|
|
135
136
|
}
|
|
@@ -723,17 +723,22 @@
|
|
|
723
723
|
var componentType = this.creatorHash[elementType];
|
|
724
724
|
if (!componentType)
|
|
725
725
|
return null;
|
|
726
|
-
|
|
726
|
+
try {
|
|
727
|
+
return containerRef.createComponent(componentType);
|
|
728
|
+
}
|
|
729
|
+
catch (e) {
|
|
730
|
+
return containerRef.createComponent(resolver.resolveComponentFactory(componentType));
|
|
731
|
+
}
|
|
727
732
|
};
|
|
728
733
|
return AngularComponentFactory;
|
|
729
734
|
}());
|
|
730
735
|
AngularComponentFactory.Instance = new AngularComponentFactory();
|
|
731
736
|
|
|
732
737
|
var DynamicComponentDirective = /** @class */ (function () {
|
|
733
|
-
function DynamicComponentDirective(containerRef, templateRef,
|
|
738
|
+
function DynamicComponentDirective(containerRef, templateRef, injector) {
|
|
734
739
|
this.containerRef = containerRef;
|
|
735
740
|
this.templateRef = templateRef;
|
|
736
|
-
this.
|
|
741
|
+
this.injector = injector;
|
|
737
742
|
}
|
|
738
743
|
DynamicComponentDirective.prototype.ngOnChanges = function (changes) {
|
|
739
744
|
var _a;
|
|
@@ -748,11 +753,10 @@
|
|
|
748
753
|
};
|
|
749
754
|
DynamicComponentDirective.prototype.createComponent = function () {
|
|
750
755
|
this.containerRef.clear();
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
this.componentInstance = AngularComponentFactory.Instance.create(this.containerRef, this.component.default, this.resolver).instance;
|
|
756
|
+
var componentName = AngularComponentFactory.Instance.isComponentRegistered(this.component.name) ? this.component.name : this.component.default;
|
|
757
|
+
if (componentName) {
|
|
758
|
+
var resolver = this.injector.get(i0.NgModuleRef).componentFactoryResolver;
|
|
759
|
+
this.componentInstance = AngularComponentFactory.Instance.create(this.containerRef, componentName, resolver).instance;
|
|
756
760
|
}
|
|
757
761
|
if (!this.componentInstance) {
|
|
758
762
|
throw new Error("Can't create component with name: " + this.component.name + " and default: " + this.component.default);
|
|
@@ -771,14 +775,14 @@
|
|
|
771
775
|
};
|
|
772
776
|
return DynamicComponentDirective;
|
|
773
777
|
}());
|
|
774
|
-
DynamicComponentDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DynamicComponentDirective, deps: [{ token: i0__namespace.ViewContainerRef }, { token: i0__namespace.TemplateRef }, { token: i0__namespace.
|
|
778
|
+
DynamicComponentDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DynamicComponentDirective, deps: [{ token: i0__namespace.ViewContainerRef }, { token: i0__namespace.TemplateRef }, { token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
775
779
|
DynamicComponentDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: DynamicComponentDirective, selector: "[component]", inputs: { component: "component" }, usesOnChanges: true, ngImport: i0__namespace });
|
|
776
780
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DynamicComponentDirective, decorators: [{
|
|
777
781
|
type: i0.Directive,
|
|
778
782
|
args: [{
|
|
779
783
|
selector: "[component]"
|
|
780
784
|
}]
|
|
781
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ViewContainerRef }, { type: i0__namespace.TemplateRef }, { type: i0__namespace.
|
|
785
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ViewContainerRef }, { type: i0__namespace.TemplateRef }, { type: i0__namespace.Injector }]; }, propDecorators: { component: [{
|
|
782
786
|
type: i0.Input
|
|
783
787
|
}] } });
|
|
784
788
|
|
|
@@ -989,10 +993,9 @@
|
|
|
989
993
|
}] } });
|
|
990
994
|
|
|
991
995
|
var PopupService = /** @class */ (function () {
|
|
992
|
-
function PopupService(injector, applicationRef
|
|
996
|
+
function PopupService(injector, applicationRef) {
|
|
993
997
|
this.injector = injector;
|
|
994
998
|
this.applicationRef = applicationRef;
|
|
995
|
-
this.componentFactoryResolver = componentFactoryResolver;
|
|
996
999
|
}
|
|
997
1000
|
PopupService.prototype.createComponent = function (popupViewModel) {
|
|
998
1001
|
var portalHost;
|
|
@@ -1002,7 +1005,8 @@
|
|
|
1002
1005
|
portalHost = new portal.DomPortalOutlet(popupViewModel.container, this.applicationRef, this.injector);
|
|
1003
1006
|
}
|
|
1004
1007
|
else {
|
|
1005
|
-
|
|
1008
|
+
var resolver = this.injector.get(i0.NgModuleRef).componentFactoryResolver;
|
|
1009
|
+
portalHost = new portal.DomPortalOutlet(popupViewModel.container, resolver, this.applicationRef, this.injector);
|
|
1006
1010
|
}
|
|
1007
1011
|
var portal$1 = new portal.ComponentPortal(PopupBaseContainerComponent);
|
|
1008
1012
|
var componentRef = portalHost.attach(portal$1);
|
|
@@ -1013,11 +1017,11 @@
|
|
|
1013
1017
|
};
|
|
1014
1018
|
return PopupService;
|
|
1015
1019
|
}());
|
|
1016
|
-
PopupService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PopupService, deps: [{ token: i0__namespace.Injector }, { token: i0__namespace.ApplicationRef }
|
|
1020
|
+
PopupService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PopupService, deps: [{ token: i0__namespace.Injector }, { token: i0__namespace.ApplicationRef }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1017
1021
|
PopupService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PopupService });
|
|
1018
1022
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PopupService, decorators: [{
|
|
1019
1023
|
type: i0.Injectable
|
|
1020
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.Injector }, { type: i0__namespace.ApplicationRef }
|
|
1024
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.Injector }, { type: i0__namespace.ApplicationRef }]; } });
|
|
1021
1025
|
|
|
1022
1026
|
var ModalComponent = /** @class */ (function () {
|
|
1023
1027
|
function ModalComponent(popupService) {
|
|
@@ -4036,6 +4040,25 @@
|
|
|
4036
4040
|
AngularComponentFactory.Instance.registerComponent("boolean-radio-question", BooleanRadioComponent);
|
|
4037
4041
|
Survey.RendererFactory.Instance.registerRenderer("boolean", "radio", "boolean-radio-question");
|
|
4038
4042
|
|
|
4043
|
+
var BooleanSwitchComponent = /** @class */ (function () {
|
|
4044
|
+
function BooleanSwitchComponent() {
|
|
4045
|
+
}
|
|
4046
|
+
return BooleanSwitchComponent;
|
|
4047
|
+
}());
|
|
4048
|
+
BooleanSwitchComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BooleanSwitchComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4049
|
+
BooleanSwitchComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: BooleanSwitchComponent, selector: "sv-ng-boolean-switch-question", inputs: { model: "model" }, ngImport: i0__namespace, template: "<div [class]=\"model.cssClasses.rootSwitch\" (click)=\"model.booleanValue = !model.booleanValue\">\n <div [class]=\"model.getSwitchButtonCss()\" role=\"checkbox\" tabindex=\"0\" [key2click]\n [attr.aria-checked]=\"model.booleanValue || false\"\n [attr.aria-required]=\"model.a11y_input_ariaRequired\" [attr.aria-label]=\"model.a11y_input_ariaLabel\"\n [attr.aria-labelledby]=\"model.a11y_input_ariaLabelledBy\" [attr.aria-invalid]=\"model.a11y_input_ariaInvalid\"\n [attr.aria-errormessage]=\"model.a11y_input_ariaErrormessage\">\n <div [class]=\"model.cssClasses.switchThumb\">\n <div [class]=\"model.cssClasses.switchThumbCircle + ' ' + model.cssClasses.switchThumbLeft\"></div>\n </div>\n <div [class]=\"model.cssClasses.switchThumb\">\n <div [class]=\"model.cssClasses.switchThumbCircle + ' ' + model.cssClasses.switchThumbRight\"></div>\n </div>\n </div>\n <div [class]=\"model.cssClasses.switchCaption\">\n <div [class]=\"model.cssClasses.switchTitle\" [id]=\"model.labelRenderedAriaID\" [model]=\"model.locTitle\" sv-ng-string></div>\n </div>\n</div>\n", components: [{ type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }], directives: [{ type: Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
|
|
4050
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BooleanSwitchComponent, decorators: [{
|
|
4051
|
+
type: i0.Component,
|
|
4052
|
+
args: [{
|
|
4053
|
+
selector: "sv-ng-boolean-switch-question",
|
|
4054
|
+
templateUrl: "./boolean-switch.component.html"
|
|
4055
|
+
}]
|
|
4056
|
+
}], propDecorators: { model: [{
|
|
4057
|
+
type: i0.Input
|
|
4058
|
+
}] } });
|
|
4059
|
+
AngularComponentFactory.Instance.registerComponent("boolean-switch-question", BooleanSwitchComponent);
|
|
4060
|
+
Survey.RendererFactory.Instance.registerRenderer("boolean", "switch", "boolean-switch-question");
|
|
4061
|
+
|
|
4039
4062
|
var ButtonGroupDropdownComponent = /** @class */ (function () {
|
|
4040
4063
|
function ButtonGroupDropdownComponent() {
|
|
4041
4064
|
}
|
|
@@ -4631,7 +4654,7 @@
|
|
|
4631
4654
|
return PanelDynamicPlaceholderComponent;
|
|
4632
4655
|
}());
|
|
4633
4656
|
PanelDynamicPlaceholderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PanelDynamicPlaceholderComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4634
|
-
PanelDynamicPlaceholderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PanelDynamicPlaceholderComponent, selector: "sv-ng-placeholder-paneldynamic", inputs: { question: "question" }, ngImport: i0__namespace, template: "<div *ngIf=\"question.getShowNoEntriesPlaceholder()\" [class]=\"question.cssClasses.noEntriesPlaceholder\">\n <span>\n <sv-ng-string [model]=\"question.locNoEntriesText\"></sv-ng-string>\n </span>\n <ng-
|
|
4657
|
+
PanelDynamicPlaceholderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PanelDynamicPlaceholderComponent, selector: "sv-ng-placeholder-paneldynamic", inputs: { question: "question" }, ngImport: i0__namespace, template: "<div *ngIf=\"question.getShowNoEntriesPlaceholder()\" [class]=\"question.cssClasses.noEntriesPlaceholder\">\n <span>\n <sv-ng-string [model]=\"question.locNoEntriesText\"></sv-ng-string>\n </span>\n <ng-template [component]=\"{ name: 'sv-action-bar', data: { model: question.footerToolbar } }\"></ng-template>\n</div> ", components: [{ type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
4635
4658
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PanelDynamicPlaceholderComponent, decorators: [{
|
|
4636
4659
|
type: i0.Component,
|
|
4637
4660
|
args: [{
|
|
@@ -5452,7 +5475,7 @@
|
|
|
5452
5475
|
TagboxFilterComponent, TagboxComponent, TagboxQuestionComponent, TagboxItemComponent,
|
|
5453
5476
|
ActionBarComponent, ActionComponent, ActionBarItemComponent, ActionBarItemDropdownComponent, HtmlQuestionComponent,
|
|
5454
5477
|
SelectBaseItemComponent, SelectBaseComponent, SurveyCommentComponent, SurveyCommentChoiceComponent, ElementHeaderComponent, ElementTitleActionsComponent, ElementTitleComponent, DynamicHeadComponent, RowComponent,
|
|
5455
|
-
RatingQuestionComponent, SliderQuestionComponent, SliderLabelItemComponent, RatingDropdownItemComponent, RatingDropdownComponent, ButtonGroupDropdownComponent, BooleanQuestionComponent, BooleanCheckboxComponent, BooleanRadioComponent, BooleanRadioItemComponent, ImagePickerItemComponent, ImagePickerQuestionComponent, ImageQuestionComponent,
|
|
5478
|
+
RatingQuestionComponent, SliderQuestionComponent, SliderLabelItemComponent, RatingDropdownItemComponent, RatingDropdownComponent, ButtonGroupDropdownComponent, BooleanQuestionComponent, BooleanCheckboxComponent, BooleanRadioComponent, BooleanRadioItemComponent, BooleanSwitchComponent, ImagePickerItemComponent, ImagePickerQuestionComponent, ImageQuestionComponent,
|
|
5456
5479
|
SurveyHeaderComponent, ProgressDefaultComponent, ProgressButtonsComponent, ProgressTocComponent, MatrixQuestionComponent, SvgIconComponent, FileQuestionComponent, SafeUrlPipe, SafeHtmlPipe, CommentQuestionComponent, SignaturePadQuestionComponent, ErrorsComponent,
|
|
5457
5480
|
MultipleTextComponent, MultipleTextItemComponent, DynamicComponentDirective, RankingQuestionComponent, RankingItemComponent, RankingItemContentComponent, PanelDynamicQuestionComponent, EmbeddedViewContentComponent, CustomWidgetComponent,
|
|
5458
5481
|
MatrixCellComponent, MatrixDropdownCellComponent, MatrixTableComponent, MatrixDropdownComponent,
|
|
@@ -5470,7 +5493,7 @@
|
|
|
5470
5493
|
TagboxFilterComponent, TagboxComponent, TagboxQuestionComponent, TagboxItemComponent,
|
|
5471
5494
|
ActionBarComponent, ActionComponent, ActionBarItemComponent, ActionBarItemDropdownComponent, HtmlQuestionComponent,
|
|
5472
5495
|
SelectBaseItemComponent, SelectBaseComponent, SurveyCommentComponent, SurveyCommentChoiceComponent, ElementHeaderComponent, ElementTitleComponent, DynamicHeadComponent, RowComponent,
|
|
5473
|
-
RatingQuestionComponent, SliderQuestionComponent, SliderLabelItemComponent, RatingDropdownItemComponent, RatingDropdownComponent, ButtonGroupDropdownComponent, BooleanQuestionComponent, BooleanCheckboxComponent, BooleanRadioComponent, BooleanRadioItemComponent, ImagePickerItemComponent, ImagePickerQuestionComponent, ImageQuestionComponent,
|
|
5496
|
+
RatingQuestionComponent, SliderQuestionComponent, SliderLabelItemComponent, RatingDropdownItemComponent, RatingDropdownComponent, ButtonGroupDropdownComponent, BooleanQuestionComponent, BooleanCheckboxComponent, BooleanRadioComponent, BooleanRadioItemComponent, BooleanSwitchComponent, ImagePickerItemComponent, ImagePickerQuestionComponent, ImageQuestionComponent,
|
|
5474
5497
|
SurveyHeaderComponent, ProgressDefaultComponent, ProgressButtonsComponent, MatrixQuestionComponent, SvgIconComponent, FileQuestionComponent, SafeUrlPipe, SafeHtmlPipe, CommentQuestionComponent, SignaturePadQuestionComponent, ErrorsComponent,
|
|
5475
5498
|
MultipleTextComponent, MultipleTextItemComponent, DynamicComponentDirective, RankingQuestionComponent, RankingItemComponent, RankingItemContentComponent, PanelDynamicQuestionComponent, EmbeddedViewContentComponent, CustomWidgetComponent,
|
|
5476
5499
|
MatrixCellComponent, MatrixDropdownCellComponent, MatrixTableComponent, MatrixDropdownComponent,
|
|
@@ -5495,7 +5518,7 @@
|
|
|
5495
5518
|
TagboxFilterComponent, TagboxComponent, TagboxQuestionComponent, TagboxItemComponent,
|
|
5496
5519
|
ActionBarComponent, ActionComponent, ActionBarItemComponent, ActionBarItemDropdownComponent, HtmlQuestionComponent,
|
|
5497
5520
|
SelectBaseItemComponent, SelectBaseComponent, SurveyCommentComponent, SurveyCommentChoiceComponent, ElementHeaderComponent, ElementTitleActionsComponent, ElementTitleComponent, DynamicHeadComponent, RowComponent,
|
|
5498
|
-
RatingQuestionComponent, SliderQuestionComponent, SliderLabelItemComponent, RatingDropdownItemComponent, RatingDropdownComponent, ButtonGroupDropdownComponent, BooleanQuestionComponent, BooleanCheckboxComponent, BooleanRadioComponent, BooleanRadioItemComponent, ImagePickerItemComponent, ImagePickerQuestionComponent, ImageQuestionComponent,
|
|
5521
|
+
RatingQuestionComponent, SliderQuestionComponent, SliderLabelItemComponent, RatingDropdownItemComponent, RatingDropdownComponent, ButtonGroupDropdownComponent, BooleanQuestionComponent, BooleanCheckboxComponent, BooleanRadioComponent, BooleanRadioItemComponent, BooleanSwitchComponent, ImagePickerItemComponent, ImagePickerQuestionComponent, ImageQuestionComponent,
|
|
5499
5522
|
SurveyHeaderComponent, ProgressDefaultComponent, ProgressButtonsComponent, ProgressTocComponent, MatrixQuestionComponent, SvgIconComponent, FileQuestionComponent, SafeUrlPipe, SafeHtmlPipe, CommentQuestionComponent, SignaturePadQuestionComponent, ErrorsComponent,
|
|
5500
5523
|
MultipleTextComponent, MultipleTextItemComponent, DynamicComponentDirective, RankingQuestionComponent, RankingItemComponent, RankingItemContentComponent, PanelDynamicQuestionComponent, EmbeddedViewContentComponent, CustomWidgetComponent,
|
|
5501
5524
|
MatrixCellComponent, MatrixDropdownCellComponent, MatrixTableComponent, MatrixDropdownComponent,
|
|
@@ -5519,7 +5542,7 @@
|
|
|
5519
5542
|
TagboxFilterComponent, TagboxComponent, TagboxQuestionComponent, TagboxItemComponent,
|
|
5520
5543
|
ActionBarComponent, ActionComponent, ActionBarItemComponent, ActionBarItemDropdownComponent, HtmlQuestionComponent,
|
|
5521
5544
|
SelectBaseItemComponent, SelectBaseComponent, SurveyCommentComponent, SurveyCommentChoiceComponent, ElementHeaderComponent, ElementTitleComponent, DynamicHeadComponent, RowComponent,
|
|
5522
|
-
RatingQuestionComponent, SliderQuestionComponent, SliderLabelItemComponent, RatingDropdownItemComponent, RatingDropdownComponent, ButtonGroupDropdownComponent, BooleanQuestionComponent, BooleanCheckboxComponent, BooleanRadioComponent, BooleanRadioItemComponent, ImagePickerItemComponent, ImagePickerQuestionComponent, ImageQuestionComponent,
|
|
5545
|
+
RatingQuestionComponent, SliderQuestionComponent, SliderLabelItemComponent, RatingDropdownItemComponent, RatingDropdownComponent, ButtonGroupDropdownComponent, BooleanQuestionComponent, BooleanCheckboxComponent, BooleanRadioComponent, BooleanRadioItemComponent, BooleanSwitchComponent, ImagePickerItemComponent, ImagePickerQuestionComponent, ImageQuestionComponent,
|
|
5523
5546
|
SurveyHeaderComponent, ProgressDefaultComponent, ProgressButtonsComponent, MatrixQuestionComponent, SvgIconComponent, FileQuestionComponent, SafeUrlPipe, SafeHtmlPipe, CommentQuestionComponent, SignaturePadQuestionComponent, ErrorsComponent,
|
|
5524
5547
|
MultipleTextComponent, MultipleTextItemComponent, DynamicComponentDirective, RankingQuestionComponent, RankingItemComponent, RankingItemContentComponent, PanelDynamicQuestionComponent, EmbeddedViewContentComponent, CustomWidgetComponent,
|
|
5525
5548
|
MatrixCellComponent, MatrixDropdownCellComponent, MatrixTableComponent, MatrixDropdownComponent,
|
|
@@ -5546,6 +5569,7 @@
|
|
|
5546
5569
|
exports.BooleanQuestionComponent = BooleanQuestionComponent;
|
|
5547
5570
|
exports.BooleanRadioComponent = BooleanRadioComponent;
|
|
5548
5571
|
exports.BooleanRadioItemComponent = BooleanRadioItemComponent;
|
|
5572
|
+
exports.BooleanSwitchComponent = BooleanSwitchComponent;
|
|
5549
5573
|
exports.BrandInfoComponent = BrandInfoComponent;
|
|
5550
5574
|
exports.BreadcrumbsComponent = BreadcrumbsComponent;
|
|
5551
5575
|
exports.ButtonGroupDropdownComponent = ButtonGroupDropdownComponent;
|