survey-angular-ui 2.3.7 → 2.3.9
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-angular-ui.umd.js +239 -232
- package/bundles/survey-angular-ui.umd.js.map +1 -1
- package/components/list/list-item.component.d.ts +2 -1
- package/esm2015/components/list/list-item.component.js +10 -4
- package/esm2015/errors.component.js +2 -2
- package/esm2015/page.component.js +5 -3
- package/esm2015/questions/matrixdynamic.component.js +2 -2
- package/esm2015/survey-content.component.js +8 -9
- package/fesm2015/survey-angular-ui.js +219 -212
- package/fesm2015/survey-angular-ui.js.map +1 -1
- package/package.json +2 -2
- package/page.component.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef, Component, ViewChild, Directive, Input, VERSION, Injectable, HostBinding,
|
|
2
|
+
import { TemplateRef, Component, ViewChild, Directive, Input, VERSION, Injectable, HostBinding, Pipe, ElementRef, HostListener, ViewContainerRef, NgModule } from '@angular/core';
|
|
3
3
|
import * as Survey from 'survey-core';
|
|
4
4
|
import { createPopupModalViewModel, settings, ScrollViewModel, SvgRegistry, addIconsToThemeSet, PopupSurveyModel, LocalizableString, createPopupViewModel, Helpers, DropdownMultiSelectListModel, RendererFactory, ButtonGroupItemModel, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, ActionDropdownViewModel, SurveyProgressModel, ProgressButtonsResponsivityManager, SurveyModel } from 'survey-core';
|
|
5
5
|
import { icons } from 'survey-core/icons/iconsV1';
|
|
@@ -742,213 +742,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
742
742
|
type: Input
|
|
743
743
|
}] } });
|
|
744
744
|
|
|
745
|
-
class ErrorsComponent {
|
|
746
|
-
constructor() { }
|
|
747
|
-
get id() {
|
|
748
|
-
return this.element.id + "_errors";
|
|
749
|
-
}
|
|
750
|
-
get class() {
|
|
751
|
-
return this.element.cssError;
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
ErrorsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ErrorsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
755
|
-
ErrorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ErrorsComponent, selector: "'[sv-ng-errors]'", inputs: { element: "element", location: "location" }, host: { properties: { "id": "this.id", "class": "this.class" } }, ngImport: i0, template: "<ng-container *ngFor=\"let error of element.errors;\">\n <ng-template [component]=\"{ name: element.survey.questionErrorComponent, data: { element: element, cssClasses: element.cssClasses, error: error } }\"></ng-template>\n</ng-container>\n", directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
756
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ErrorsComponent, decorators: [{
|
|
757
|
-
type: Component,
|
|
758
|
-
args: [{
|
|
759
|
-
templateUrl: "./errors.component.html",
|
|
760
|
-
selector: "'[sv-ng-errors]'"
|
|
761
|
-
}]
|
|
762
|
-
}], ctorParameters: function () { return []; }, propDecorators: { element: [{
|
|
763
|
-
type: Input
|
|
764
|
-
}], location: [{
|
|
765
|
-
type: Input
|
|
766
|
-
}], id: [{
|
|
767
|
-
type: HostBinding,
|
|
768
|
-
args: ["id"]
|
|
769
|
-
}], class: [{
|
|
770
|
-
type: HostBinding,
|
|
771
|
-
args: ["class"]
|
|
772
|
-
}] } });
|
|
773
|
-
|
|
774
|
-
class ElementComponent extends BaseAngular {
|
|
775
|
-
getModel() {
|
|
776
|
-
return this.model;
|
|
777
|
-
}
|
|
778
|
-
get elementComponentName() {
|
|
779
|
-
return this.model.isPanel ? "panel" : "question";
|
|
780
|
-
}
|
|
781
|
-
onModelChanged() {
|
|
782
|
-
var _a;
|
|
783
|
-
super.onModelChanged();
|
|
784
|
-
if (this.previousModel) {
|
|
785
|
-
this.previousModel.setWrapperElement(undefined);
|
|
786
|
-
}
|
|
787
|
-
if (this.model && ((_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
788
|
-
this.model.setWrapperElement(this.container.nativeElement);
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
get componentName() {
|
|
792
|
-
const survey = this.surveyModel;
|
|
793
|
-
if (!!survey) {
|
|
794
|
-
const name = survey.getElementWrapperComponentName(this.model);
|
|
795
|
-
if (!!name) {
|
|
796
|
-
return name;
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
return this.elementComponentName;
|
|
800
|
-
}
|
|
801
|
-
get rootStyle() {
|
|
802
|
-
//use this if to check if cssClassses are calculated and allowRootStyle flag was set
|
|
803
|
-
if (!!this.model.cssClasses) {
|
|
804
|
-
return this.model.rootStyle;
|
|
805
|
-
}
|
|
806
|
-
else {
|
|
807
|
-
return {};
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
get componentData() {
|
|
811
|
-
const survey = this.surveyModel;
|
|
812
|
-
let data;
|
|
813
|
-
if (!!survey) {
|
|
814
|
-
data = survey.getElementWrapperComponentData(this.model);
|
|
815
|
-
}
|
|
816
|
-
return {
|
|
817
|
-
componentName: this.elementComponentName,
|
|
818
|
-
componentData: {
|
|
819
|
-
model: this.model,
|
|
820
|
-
data: data
|
|
821
|
-
}
|
|
822
|
-
};
|
|
823
|
-
}
|
|
824
|
-
ngAfterViewInit() {
|
|
825
|
-
var _a;
|
|
826
|
-
if (this.model && ((_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
827
|
-
this.model.setWrapperElement(this.container.nativeElement);
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
ngOnDestroy() {
|
|
831
|
-
super.ngOnDestroy();
|
|
832
|
-
this.model.setWrapperElement(undefined);
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
ElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
836
|
-
ElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ElementComponent, selector: "sv-ng-element", inputs: { model: "model" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div *ngIf=\"!!model\" [class]=\"model.cssClasses.questionWrapper\" [style]=\"rootStyle\" (focusin)=\"model.focusIn()\" #container>\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n </div>\n</ng-template>", styles: [":host{display:none}\n"], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
837
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ElementComponent, decorators: [{
|
|
838
|
-
type: Component,
|
|
839
|
-
args: [{
|
|
840
|
-
selector: "sv-ng-element",
|
|
841
|
-
templateUrl: "./element.component.html",
|
|
842
|
-
styleUrls: ["./hide-host.scss"]
|
|
843
|
-
}]
|
|
844
|
-
}], propDecorators: { model: [{
|
|
845
|
-
type: Input
|
|
846
|
-
}], container: [{
|
|
847
|
-
type: ViewChild,
|
|
848
|
-
args: ["container", { static: false, read: ElementRef }]
|
|
849
|
-
}] } });
|
|
850
|
-
|
|
851
|
-
class RowComponent extends BaseAngular {
|
|
852
|
-
constructor(cdr, vcr, ngZone) {
|
|
853
|
-
super(cdr, vcr);
|
|
854
|
-
this.ngZone = ngZone;
|
|
855
|
-
}
|
|
856
|
-
getModel() {
|
|
857
|
-
return this.row;
|
|
858
|
-
}
|
|
859
|
-
trackElementBy(index, element) {
|
|
860
|
-
return element.name + index;
|
|
861
|
-
}
|
|
862
|
-
ngAfterViewInit() {
|
|
863
|
-
var _a;
|
|
864
|
-
const el = (_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
865
|
-
if (!!el) {
|
|
866
|
-
this.row.setRootElement(el);
|
|
867
|
-
if (!this.row.isNeedRender) {
|
|
868
|
-
this.ngZone.runOutsideAngular(() => {
|
|
869
|
-
this.lazyRenderingTimeout = setTimeout(() => {
|
|
870
|
-
this.row.startLazyRendering(el);
|
|
871
|
-
}, 10);
|
|
872
|
-
});
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
onModelChanged() {
|
|
877
|
-
var _a;
|
|
878
|
-
super.onModelChanged();
|
|
879
|
-
if (!this.previousModel) {
|
|
880
|
-
return;
|
|
881
|
-
}
|
|
882
|
-
else {
|
|
883
|
-
this.previousModel.setRootElement(undefined);
|
|
884
|
-
if ((_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement) {
|
|
885
|
-
this.row.setRootElement(this.container.nativeElement);
|
|
886
|
-
}
|
|
887
|
-
this.row.isNeedRender = this.previousModel.isNeedRender;
|
|
888
|
-
this.stopLazyRendering();
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
stopLazyRendering() {
|
|
892
|
-
clearTimeout(this.lazyRenderingTimeout);
|
|
893
|
-
this.row.stopLazyRendering();
|
|
894
|
-
this.row.isNeedRender = !this.row.isLazyRendering();
|
|
895
|
-
}
|
|
896
|
-
ngOnDestroy() {
|
|
897
|
-
super.ngOnDestroy();
|
|
898
|
-
if (!this.isBaseElementSubsribed(this.row)) {
|
|
899
|
-
this.row.setRootElement(undefined);
|
|
900
|
-
this.stopLazyRendering();
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
RowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RowComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ViewContainerRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
905
|
-
RowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: RowComponent, selector: "sv-ng-row", inputs: { row: "row" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div [class]=\"row.getRowCss()\" #container>\n <ng-container *ngFor=\"let element of row.visibleElements; trackBy: trackElementBy\">\n <sv-ng-element [model]=\"$any(element)\" *ngIf=\"row.isNeedRender\"></sv-ng-element>\n <ng-template *ngIf=\"!row.isNeedRender && element.skeletonComponentName\" [component]=\"{ name: element.skeletonComponentName, data: { element: element } }\"></ng-template>\n </ng-container>\n </div>\n</ng-template>", styles: [":host{display:none}\n"], components: [{ type: ElementComponent, selector: "sv-ng-element", inputs: ["model"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
906
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RowComponent, decorators: [{
|
|
907
|
-
type: Component,
|
|
908
|
-
args: [{
|
|
909
|
-
selector: "sv-ng-row",
|
|
910
|
-
templateUrl: "./row.component.html",
|
|
911
|
-
styleUrls: ["./hide-host.scss"]
|
|
912
|
-
}]
|
|
913
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ViewContainerRef }, { type: i0.NgZone }]; }, propDecorators: { row: [{
|
|
914
|
-
type: Input
|
|
915
|
-
}], container: [{
|
|
916
|
-
type: ViewChild,
|
|
917
|
-
args: ["container", { read: ElementRef }]
|
|
918
|
-
}] } });
|
|
919
|
-
|
|
920
|
-
class PageComponent extends BaseAngular {
|
|
921
|
-
getModel() {
|
|
922
|
-
return this.model;
|
|
923
|
-
}
|
|
924
|
-
onModelChanged() {
|
|
925
|
-
if (!!this.pageContainerRef && this.pageContainerRef.nativeElement) {
|
|
926
|
-
this.model.survey.afterRenderPage(this.pageContainerRef.nativeElement);
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
ngAfterViewInit() {
|
|
930
|
-
var _a, _b;
|
|
931
|
-
(_a = this.model.survey) === null || _a === void 0 ? void 0 : _a.afterRenderPage((_b = this.pageContainerRef) === null || _b === void 0 ? void 0 : _b.nativeElement);
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
PageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PageComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
935
|
-
PageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PageComponent, selector: "page, sv-ng-page", inputs: { model: "model", survey: "survey" }, viewQueries: [{ propertyName: "pageContainerRef", first: true, predicate: ["pageContainer"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <ng-container *ngIf=\"!!this.survey && !!this.model && this.model.isVisible && !!this.model.survey\">\n <div [class]=\"model.cssRoot\" #pageContainer>\n <sv-ng-element-title [element]=\"model\"></sv-ng-element-title>\n <div *ngIf=\"model._showDescription\" [class]=\"model.cssClasses.page?.description\">\n <sv-ng-string [model]=\"model.locDescription\"></sv-ng-string>\n </div>\n <div *ngIf=\"model.hasVisibleErrors\" [element]=\"model\" sv-ng-errors></div>\n <ng-container *ngFor=\"let row of model.visibleRows\">\n <ng-template [component]=\"{ name: $any(model.survey).getRowWrapperComponentName(row), data: { componentData: $any(model.survey).getRowWrapperComponentData(row) } }\">\n <sv-ng-row [row]=\"row\"></sv-ng-row>\n </ng-template>\n </ng-container>\n </div>\n </ng-container> \n</ng-template>", styles: [":host{display:none}\n"], components: [{ type: ElementTitleComponent, selector: "sv-ng-element-title", inputs: ["element"] }, { type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }, { type: ErrorsComponent, selector: "'[sv-ng-errors]'", inputs: ["element", "location"] }, { type: RowComponent, selector: "sv-ng-row", inputs: ["row"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
936
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PageComponent, decorators: [{
|
|
937
|
-
type: Component,
|
|
938
|
-
args: [{
|
|
939
|
-
selector: "page, sv-ng-page",
|
|
940
|
-
templateUrl: "./page.component.html",
|
|
941
|
-
styleUrls: ["./hide-host.scss"]
|
|
942
|
-
}]
|
|
943
|
-
}], propDecorators: { model: [{
|
|
944
|
-
type: Input
|
|
945
|
-
}], survey: [{
|
|
946
|
-
type: Input
|
|
947
|
-
}], pageContainerRef: [{
|
|
948
|
-
type: ViewChild,
|
|
949
|
-
args: ["pageContainer", { static: false, read: ElementRef }]
|
|
950
|
-
}] } });
|
|
951
|
-
|
|
952
745
|
class BrandInfoComponent {
|
|
953
746
|
}
|
|
954
747
|
BrandInfoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: BrandInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -1039,7 +832,7 @@ class SurveyContentComponent extends BaseAngular {
|
|
|
1039
832
|
}
|
|
1040
833
|
}
|
|
1041
834
|
SurveyContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SurveyContentComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1042
|
-
SurveyContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SurveyContentComponent, selector: "survey-content", inputs: { model: "model" }, viewQueries: [{ propertyName: "rootEl", first: true, predicate: ["surveyContainer"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div #surveyContainer *ngIf=\"!!model\" [class]=\"model.getRootCss()\" [style]=\"model.themeVariables\" [lang]=\"model.locale || 'en'\" [dir]=\"model.localeDir\">\n <sv-scroll [disabled]=\"model.rootScrollDisabled\">\n <sv-svg-bundle *ngIf=\"model.needRenderIcons\"></sv-svg-bundle>\n <div [class]=\"model.wrapperFormCss\">\n <div *ngIf=\"!!model.renderBackgroundImage\" [class]=\"model.css.rootBackgroundImage\" [style]=\"model.backgroundImageStyle\"></div>\n <form onsubmit=\"return false;\">\n <sv-scroll [disabled]=\"model.formScrollDisabled\">\n <div class=\"sv_custom_header\" [hidden]=\"model.hasLogo\"></div>\n <div [class]=\"model.css.container\">\n <div *ngIf=\"model.headerView === 'basic' && model.renderedHasHeader\" [class]=\"model.css.header\" [survey]=\"model\" sv-ng-survey-header></div>\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'header', needRenderWrapper: false } }\"></ng-template>\n <div *ngIf=\"model.isShowingPage\" [class]=\"model.bodyContainerCss\">\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'left' } }\"></ng-template>\n <div class=\"sv-components-column sv-components-column--expandable\">\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'center' } }\"></ng-template>\n <div [class]=\"model.bodyCss\" [style.maxWidth]=\"model.renderedWidth\" [id]=\"model.activePage ? model.activePage.id : ''\">\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'contentTop' } }\"></ng-template>\n
|
|
835
|
+
SurveyContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SurveyContentComponent, selector: "survey-content", inputs: { model: "model" }, viewQueries: [{ propertyName: "rootEl", first: true, predicate: ["surveyContainer"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div #surveyContainer *ngIf=\"!!model\" [class]=\"model.getRootCss()\" [style]=\"model.themeVariables\" [lang]=\"model.locale || 'en'\" [dir]=\"model.localeDir\">\n <sv-scroll [disabled]=\"model.rootScrollDisabled\">\n <sv-svg-bundle *ngIf=\"model.needRenderIcons\"></sv-svg-bundle>\n <div [class]=\"model.wrapperFormCss\">\n <div *ngIf=\"!!model.renderBackgroundImage\" [class]=\"model.css.rootBackgroundImage\" [style]=\"model.backgroundImageStyle\"></div>\n <form onsubmit=\"return false;\">\n <sv-scroll [disabled]=\"model.formScrollDisabled\">\n <div class=\"sv_custom_header\" [hidden]=\"model.hasLogo\"></div>\n <div [class]=\"model.css.container\">\n <div *ngIf=\"model.headerView === 'basic' && model.renderedHasHeader\" [class]=\"model.css.header\" [survey]=\"model\" sv-ng-survey-header></div>\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'header', needRenderWrapper: false } }\"></ng-template>\n <div *ngIf=\"model.isShowingPage\" [class]=\"model.bodyContainerCss\">\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'left' } }\"></ng-template>\n <div class=\"sv-components-column sv-components-column--expandable\">\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'center' } }\"></ng-template>\n <div [class]=\"model.bodyCss\" [style.maxWidth]=\"model.renderedWidth\" [id]=\"model.activePage ? model.activePage.id : ''\">\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'contentTop' } }\"></ng-template>\n <ng-container *ngIf=\"model.activePage\">\n <!-- <sv-ng-page [model]=\"model.activePage\" [survey]=\"model\"></sv-ng-page> -->\n <ng-template [component]=\"{ name: model.pageComponent || 'sv-page', data: { model: model.activePage, survey: model } }\"></ng-template>\n </ng-container>\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'contentBottom' } }\"></ng-template>\n <sv-brand-info *ngIf=\"model.showBrandInfo\"></sv-brand-info>\n </div>\n </div>\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'right' } }\"></ng-template>\n </div>\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'footer', needRenderWrapper: false } }\"></ng-template>\n <div *ngIf=\"model.state === 'completed' && model.showCompletedPage\" [class]=\"model.completedCss\"\n [innerHtml]=\"model.processedCompletedHtml | safeHtml\"></div>\n <ng-template *ngIf=\"model.state === 'completed' && model.showCompletedPage\" [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'completePage' } }\"></ng-template>\n <div *ngIf=\"model.state === 'completedbefore'\" [class]=\"model.completedBeforeCss\"\n [innerHtml]=\"model.processedCompletedBeforeHtml | safeHtml\"></div>\n <div *ngIf=\"model.state === 'loading'\" [class]=\"model.loadingBodyCss\" [innerHtml]=\"model.processedLoadingHtml\"></div>\n <div *ngIf=\"model.state === 'empty'\" [class]=\"model.css.bodyEmpty\">{{model.emptySurveyText}}</div>\n </div>\n </sv-scroll>\n </form>\n <sv-notifier [notifier]=\"model.notifier\"></sv-notifier>\n </div>\n </sv-scroll>\n </div>\n</ng-template>", components: [{ type: ScrollComponent, selector: "sv-scroll", inputs: ["disabled", "onInnerHeightChanged"] }, { type: SvgBundleComponent, selector: "sv-svg-bundle" }, { type: SurveyHeaderComponent, selector: "'[sv-ng-survey-header]'", inputs: ["survey"] }, { type: BrandInfoComponent, selector: "sv-brand-info" }, { type: NotifierComponent, selector: "sv-notifier", inputs: ["notifier"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i4.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }], pipes: { "safeHtml": SafeHtmlPipe } });
|
|
1043
836
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SurveyContentComponent, decorators: [{
|
|
1044
837
|
type: Component,
|
|
1045
838
|
args: [{
|
|
@@ -1156,6 +949,214 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1156
949
|
type: Input
|
|
1157
950
|
}] } });
|
|
1158
951
|
|
|
952
|
+
class ErrorsComponent {
|
|
953
|
+
constructor() { }
|
|
954
|
+
get id() {
|
|
955
|
+
return this.element.id + "_errors";
|
|
956
|
+
}
|
|
957
|
+
get class() {
|
|
958
|
+
return this.element.cssError;
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
ErrorsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ErrorsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
962
|
+
ErrorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ErrorsComponent, selector: "'[sv-ng-errors]'", inputs: { element: "element", location: "location" }, host: { properties: { "id": "this.id", "class": "this.class" } }, ngImport: i0, template: "<ng-container *ngFor=\"let error of element.renderedErrors;\">\n <ng-template [component]=\"{ name: element.survey.questionErrorComponent, data: { element: element, cssClasses: element.cssClasses, error: error } }\"></ng-template>\n</ng-container>\n", directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
963
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ErrorsComponent, decorators: [{
|
|
964
|
+
type: Component,
|
|
965
|
+
args: [{
|
|
966
|
+
templateUrl: "./errors.component.html",
|
|
967
|
+
selector: "'[sv-ng-errors]'"
|
|
968
|
+
}]
|
|
969
|
+
}], ctorParameters: function () { return []; }, propDecorators: { element: [{
|
|
970
|
+
type: Input
|
|
971
|
+
}], location: [{
|
|
972
|
+
type: Input
|
|
973
|
+
}], id: [{
|
|
974
|
+
type: HostBinding,
|
|
975
|
+
args: ["id"]
|
|
976
|
+
}], class: [{
|
|
977
|
+
type: HostBinding,
|
|
978
|
+
args: ["class"]
|
|
979
|
+
}] } });
|
|
980
|
+
|
|
981
|
+
class ElementComponent extends BaseAngular {
|
|
982
|
+
getModel() {
|
|
983
|
+
return this.model;
|
|
984
|
+
}
|
|
985
|
+
get elementComponentName() {
|
|
986
|
+
return this.model.isPanel ? "panel" : "question";
|
|
987
|
+
}
|
|
988
|
+
onModelChanged() {
|
|
989
|
+
var _a;
|
|
990
|
+
super.onModelChanged();
|
|
991
|
+
if (this.previousModel) {
|
|
992
|
+
this.previousModel.setWrapperElement(undefined);
|
|
993
|
+
}
|
|
994
|
+
if (this.model && ((_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
995
|
+
this.model.setWrapperElement(this.container.nativeElement);
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
get componentName() {
|
|
999
|
+
const survey = this.surveyModel;
|
|
1000
|
+
if (!!survey) {
|
|
1001
|
+
const name = survey.getElementWrapperComponentName(this.model);
|
|
1002
|
+
if (!!name) {
|
|
1003
|
+
return name;
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
return this.elementComponentName;
|
|
1007
|
+
}
|
|
1008
|
+
get rootStyle() {
|
|
1009
|
+
//use this if to check if cssClassses are calculated and allowRootStyle flag was set
|
|
1010
|
+
if (!!this.model.cssClasses) {
|
|
1011
|
+
return this.model.rootStyle;
|
|
1012
|
+
}
|
|
1013
|
+
else {
|
|
1014
|
+
return {};
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
get componentData() {
|
|
1018
|
+
const survey = this.surveyModel;
|
|
1019
|
+
let data;
|
|
1020
|
+
if (!!survey) {
|
|
1021
|
+
data = survey.getElementWrapperComponentData(this.model);
|
|
1022
|
+
}
|
|
1023
|
+
return {
|
|
1024
|
+
componentName: this.elementComponentName,
|
|
1025
|
+
componentData: {
|
|
1026
|
+
model: this.model,
|
|
1027
|
+
data: data
|
|
1028
|
+
}
|
|
1029
|
+
};
|
|
1030
|
+
}
|
|
1031
|
+
ngAfterViewInit() {
|
|
1032
|
+
var _a;
|
|
1033
|
+
if (this.model && ((_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
1034
|
+
this.model.setWrapperElement(this.container.nativeElement);
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
ngOnDestroy() {
|
|
1038
|
+
super.ngOnDestroy();
|
|
1039
|
+
this.model.setWrapperElement(undefined);
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
ElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1043
|
+
ElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ElementComponent, selector: "sv-ng-element", inputs: { model: "model" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div *ngIf=\"!!model\" [class]=\"model.cssClasses.questionWrapper\" [style]=\"rootStyle\" (focusin)=\"model.focusIn()\" #container>\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n </div>\n</ng-template>", styles: [":host{display:none}\n"], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1044
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ElementComponent, decorators: [{
|
|
1045
|
+
type: Component,
|
|
1046
|
+
args: [{
|
|
1047
|
+
selector: "sv-ng-element",
|
|
1048
|
+
templateUrl: "./element.component.html",
|
|
1049
|
+
styleUrls: ["./hide-host.scss"]
|
|
1050
|
+
}]
|
|
1051
|
+
}], propDecorators: { model: [{
|
|
1052
|
+
type: Input
|
|
1053
|
+
}], container: [{
|
|
1054
|
+
type: ViewChild,
|
|
1055
|
+
args: ["container", { static: false, read: ElementRef }]
|
|
1056
|
+
}] } });
|
|
1057
|
+
|
|
1058
|
+
class RowComponent extends BaseAngular {
|
|
1059
|
+
constructor(cdr, vcr, ngZone) {
|
|
1060
|
+
super(cdr, vcr);
|
|
1061
|
+
this.ngZone = ngZone;
|
|
1062
|
+
}
|
|
1063
|
+
getModel() {
|
|
1064
|
+
return this.row;
|
|
1065
|
+
}
|
|
1066
|
+
trackElementBy(index, element) {
|
|
1067
|
+
return element.name + index;
|
|
1068
|
+
}
|
|
1069
|
+
ngAfterViewInit() {
|
|
1070
|
+
var _a;
|
|
1071
|
+
const el = (_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
1072
|
+
if (!!el) {
|
|
1073
|
+
this.row.setRootElement(el);
|
|
1074
|
+
if (!this.row.isNeedRender) {
|
|
1075
|
+
this.ngZone.runOutsideAngular(() => {
|
|
1076
|
+
this.lazyRenderingTimeout = setTimeout(() => {
|
|
1077
|
+
this.row.startLazyRendering(el);
|
|
1078
|
+
}, 10);
|
|
1079
|
+
});
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
onModelChanged() {
|
|
1084
|
+
var _a;
|
|
1085
|
+
super.onModelChanged();
|
|
1086
|
+
if (!this.previousModel) {
|
|
1087
|
+
return;
|
|
1088
|
+
}
|
|
1089
|
+
else {
|
|
1090
|
+
this.previousModel.setRootElement(undefined);
|
|
1091
|
+
if ((_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement) {
|
|
1092
|
+
this.row.setRootElement(this.container.nativeElement);
|
|
1093
|
+
}
|
|
1094
|
+
this.row.isNeedRender = this.previousModel.isNeedRender;
|
|
1095
|
+
this.stopLazyRendering();
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
stopLazyRendering() {
|
|
1099
|
+
clearTimeout(this.lazyRenderingTimeout);
|
|
1100
|
+
this.row.stopLazyRendering();
|
|
1101
|
+
this.row.isNeedRender = !this.row.isLazyRendering();
|
|
1102
|
+
}
|
|
1103
|
+
ngOnDestroy() {
|
|
1104
|
+
super.ngOnDestroy();
|
|
1105
|
+
if (!this.isBaseElementSubsribed(this.row)) {
|
|
1106
|
+
this.row.setRootElement(undefined);
|
|
1107
|
+
this.stopLazyRendering();
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
RowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RowComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ViewContainerRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
1112
|
+
RowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: RowComponent, selector: "sv-ng-row", inputs: { row: "row" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div [class]=\"row.getRowCss()\" #container>\n <ng-container *ngFor=\"let element of row.visibleElements; trackBy: trackElementBy\">\n <sv-ng-element [model]=\"$any(element)\" *ngIf=\"row.isNeedRender\"></sv-ng-element>\n <ng-template *ngIf=\"!row.isNeedRender && element.skeletonComponentName\" [component]=\"{ name: element.skeletonComponentName, data: { element: element } }\"></ng-template>\n </ng-container>\n </div>\n</ng-template>", styles: [":host{display:none}\n"], components: [{ type: ElementComponent, selector: "sv-ng-element", inputs: ["model"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RowComponent, decorators: [{
|
|
1114
|
+
type: Component,
|
|
1115
|
+
args: [{
|
|
1116
|
+
selector: "sv-ng-row",
|
|
1117
|
+
templateUrl: "./row.component.html",
|
|
1118
|
+
styleUrls: ["./hide-host.scss"]
|
|
1119
|
+
}]
|
|
1120
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ViewContainerRef }, { type: i0.NgZone }]; }, propDecorators: { row: [{
|
|
1121
|
+
type: Input
|
|
1122
|
+
}], container: [{
|
|
1123
|
+
type: ViewChild,
|
|
1124
|
+
args: ["container", { read: ElementRef }]
|
|
1125
|
+
}] } });
|
|
1126
|
+
|
|
1127
|
+
class PageComponent extends BaseAngular {
|
|
1128
|
+
getModel() {
|
|
1129
|
+
return this.model;
|
|
1130
|
+
}
|
|
1131
|
+
onModelChanged() {
|
|
1132
|
+
if (!!this.pageContainerRef && this.pageContainerRef.nativeElement) {
|
|
1133
|
+
this.model.survey.afterRenderPage(this.pageContainerRef.nativeElement);
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
ngAfterViewInit() {
|
|
1137
|
+
var _a, _b;
|
|
1138
|
+
(_a = this.model.survey) === null || _a === void 0 ? void 0 : _a.afterRenderPage((_b = this.pageContainerRef) === null || _b === void 0 ? void 0 : _b.nativeElement);
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
PageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PageComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1142
|
+
PageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PageComponent, selector: "sv-page, page, sv-ng-page", inputs: { model: "model", survey: "survey" }, viewQueries: [{ propertyName: "pageContainerRef", first: true, predicate: ["pageContainer"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <ng-container *ngIf=\"!!this.survey && !!this.model && this.model.isVisible && !!this.model.survey\">\n <div [class]=\"model.cssRoot\" #pageContainer>\n <sv-ng-element-title [element]=\"model\"></sv-ng-element-title>\n <div *ngIf=\"model._showDescription\" [class]=\"model.cssClasses.page?.description\">\n <sv-ng-string [model]=\"model.locDescription\"></sv-ng-string>\n </div>\n <div *ngIf=\"model.hasVisibleErrors\" [element]=\"model\" sv-ng-errors></div>\n <ng-container *ngFor=\"let row of model.visibleRows\">\n <ng-template [component]=\"{ name: $any(model.survey).getRowWrapperComponentName(row), data: { componentData: $any(model.survey).getRowWrapperComponentData(row) } }\">\n <sv-ng-row [row]=\"row\"></sv-ng-row>\n </ng-template>\n </ng-container>\n </div>\n </ng-container> \n</ng-template>", styles: [":host{display:none}\n"], components: [{ type: ElementTitleComponent, selector: "sv-ng-element-title", inputs: ["element"] }, { type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }, { type: ErrorsComponent, selector: "'[sv-ng-errors]'", inputs: ["element", "location"] }, { type: RowComponent, selector: "sv-ng-row", inputs: ["row"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PageComponent, decorators: [{
|
|
1144
|
+
type: Component,
|
|
1145
|
+
args: [{
|
|
1146
|
+
selector: "sv-page, page, sv-ng-page",
|
|
1147
|
+
templateUrl: "./page.component.html",
|
|
1148
|
+
styleUrls: ["./hide-host.scss"]
|
|
1149
|
+
}]
|
|
1150
|
+
}], propDecorators: { model: [{
|
|
1151
|
+
type: Input
|
|
1152
|
+
}], survey: [{
|
|
1153
|
+
type: Input
|
|
1154
|
+
}], pageContainerRef: [{
|
|
1155
|
+
type: ViewChild,
|
|
1156
|
+
args: ["pageContainer", { static: false, read: ElementRef }]
|
|
1157
|
+
}] } });
|
|
1158
|
+
AngularComponentFactory.Instance.registerComponent("sv-page", PageComponent);
|
|
1159
|
+
|
|
1159
1160
|
class QuestionAngular extends BaseAngular {
|
|
1160
1161
|
getModel() {
|
|
1161
1162
|
return this.model;
|
|
@@ -2516,11 +2517,14 @@ class ListItemComponent extends BaseAngular {
|
|
|
2516
2517
|
return this.model;
|
|
2517
2518
|
}
|
|
2518
2519
|
ngAfterViewInit() {
|
|
2519
|
-
|
|
2520
|
+
var _a;
|
|
2521
|
+
if (!!((_a = this.elementRef) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
2522
|
+
this.listModel.onItemRended(this.model, this.elementRef.nativeElement);
|
|
2523
|
+
}
|
|
2520
2524
|
}
|
|
2521
2525
|
}
|
|
2522
2526
|
ListItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ListItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2523
|
-
ListItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ListItemComponent, selector: "sv-ng-list-item, '[sv-ng-list-item]'", inputs: { element: "element", model: "model", listModel: "listModel" }, usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <li [attr.role]=\"listModel.listItemRole\" [key2click]=\"{ processEsc: false, disableTabStop: model.disableTabStop }\" [visible]=\"listModel.isItemVisible(model)\" [class]=\"class\" \n [attr.id]=\"elementId\" [attr.aria-selected]=\"ariaSelected\" [attr.aria-checked]=\"ariaChecked\" (click)=\"click($event)\" (pointerdown)=\"pointerdown($event)\">\n <ng-container *ngIf=\"model.needSeparator\">\n <div [class]=\"listModel.cssClasses.itemSeparator\"></div>\n </ng-container>\n <div [class]=\"listModel.cssClasses.itemBody\" [style]=\"itemStyle\" [attr.title]=\"model.getTooltip()\"\n (mouseover)=\"listModel.onItemHover(model)\"\n (mouseleave)=\"listModel.onItemLeave(model)\">\n <ng-template [component]=\"{ name: itemComponent, data: { model: model, listModel: listModel } }\"></ng-template>\n </div>\n </li>\n</ng-template>", styles: [":host{display:none}\n"], directives: [{ type: Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: VisibleDirective, selector: "[visible]", inputs: ["visible"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
2527
|
+
ListItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ListItemComponent, selector: "sv-ng-list-item, '[sv-ng-list-item]'", inputs: { element: "element", model: "model", listModel: "listModel" }, viewQueries: [{ propertyName: "elementRef", first: true, predicate: ["elementRef"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <li #elementRef [attr.role]=\"listModel.listItemRole\" [key2click]=\"{ processEsc: false, disableTabStop: model.disableTabStop }\" [visible]=\"listModel.isItemVisible(model)\" [class]=\"class\" \n [attr.id]=\"elementId\" [attr.aria-selected]=\"ariaSelected\" [attr.aria-checked]=\"ariaChecked\" (click)=\"click($event)\" (pointerdown)=\"pointerdown($event)\">\n <ng-container *ngIf=\"model.needSeparator\">\n <div [class]=\"listModel.cssClasses.itemSeparator\"></div>\n </ng-container>\n <div [class]=\"listModel.cssClasses.itemBody\" [style]=\"itemStyle\" [attr.title]=\"model.getTooltip()\"\n (mouseover)=\"listModel.onItemHover(model)\"\n (mouseleave)=\"listModel.onItemLeave(model)\">\n <ng-template [component]=\"{ name: itemComponent, data: { model: model, listModel: listModel } }\"></ng-template>\n </div>\n </li>\n</ng-template>", styles: [":host{display:none}\n"], directives: [{ type: Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: VisibleDirective, selector: "[visible]", inputs: ["visible"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
2524
2528
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ListItemComponent, decorators: [{
|
|
2525
2529
|
type: Component,
|
|
2526
2530
|
args: [{
|
|
@@ -2534,6 +2538,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
2534
2538
|
type: Input
|
|
2535
2539
|
}], listModel: [{
|
|
2536
2540
|
type: Input
|
|
2541
|
+
}], elementRef: [{
|
|
2542
|
+
type: ViewChild,
|
|
2543
|
+
args: ["elementRef"]
|
|
2537
2544
|
}] } });
|
|
2538
2545
|
AngularComponentFactory.Instance.registerComponent("sv-list-item", ListItemComponent);
|
|
2539
2546
|
|
|
@@ -3867,7 +3874,7 @@ AngularComponentFactory.Instance.registerComponent("sv-ng-placeholder-matrixdyna
|
|
|
3867
3874
|
class MatrixDynamicComponent extends QuestionAngular {
|
|
3868
3875
|
}
|
|
3869
3876
|
MatrixDynamicComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MatrixDynamicComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3870
|
-
MatrixDynamicComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MatrixDynamicComponent, selector: "sv-ng-matrixdynamic-question", usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div #contentElement>\n <div *ngIf=\"model.renderedTable.showAddRowOnTop\" [class]=\"model.cssClasses.footer\">\n <ng-container *ngTemplateOutlet=\"addRowButton\"></ng-container>\n </div>\n <sv-ng-matrix-table *ngIf=\"model.renderedTable?.showTable\" [question]=\"model\" [table]=\"model.renderedTable\"></sv-ng-matrix-table>\n <sv-ng-placeholder-matrixdynamic *ngIf=\"!model.renderedTable.showTable\" [question]=\"model\"></sv-ng-placeholder-matrixdynamic>\n \n <div *ngIf=\"model.renderedTable.showAddRowOnBottom\" [class]=\"model.cssClasses.footer\">\n <ng-container *ngTemplateOutlet=\"addRowButton\"></ng-container>\n </div>\n </div>\n <ng-template #addRowButton>\n <button type=\"button\" [class]=\"model.getAddRowButtonCss(true)\" (click)=\"model.addRowUI()\">\n <sv-ng-string [model]=\"model.locAddRowText\" ></sv-ng-string>\n <span [class]=\"model.cssClasses.iconAdd\"></span>\n </button>\n </ng-template>\n</ng-template>", components: [{ type: MatrixTableComponent, selector: "sv-ng-matrix-table", inputs: ["question", "table"] }, { type: MatrixDynamicPlaceholderComponent, selector: "sv-ng-placeholder-matrixdynamic", inputs: ["question"] }, { type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
3877
|
+
MatrixDynamicComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MatrixDynamicComponent, selector: "sv-ng-matrixdynamic-question", usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div #contentElement>\n <div *ngIf=\"model.renderedTable.showAddRowOnTop\" [class]=\"model.cssClasses.footer\">\n <ng-container *ngTemplateOutlet=\"addRowButton\"></ng-container>\n </div>\n <sv-ng-matrix-table *ngIf=\"model.renderedTable?.showTable\" [question]=\"model\" [table]=\"model.renderedTable\"></sv-ng-matrix-table>\n <sv-ng-placeholder-matrixdynamic *ngIf=\"!model.renderedTable.showTable\" [question]=\"model\"></sv-ng-placeholder-matrixdynamic>\n \n <div *ngIf=\"model.renderedTable.showAddRowOnBottom\" [class]=\"model.cssClasses.footer\">\n <ng-container *ngTemplateOutlet=\"addRowButton\"></ng-container>\n </div>\n </div>\n <ng-template #addRowButton>\n <button type=\"button\" [class]=\"model.getAddRowButtonCss(true)\" (click)=\"model.addRowUI()\">\n <sv-ng-string [model]=\"model.locAddRowText\" ></sv-ng-string>\n <span [class]=\"model.cssClasses.iconAdd\">\n <svg *ngIf=\"model.cssClasses.iconAddId\">\n <use [attr.xlink:href]=\"model.cssClasses.iconAddId\"></use>\n </svg>\n </span>\n </button>\n </ng-template>\n</ng-template>", components: [{ type: MatrixTableComponent, selector: "sv-ng-matrix-table", inputs: ["question", "table"] }, { type: MatrixDynamicPlaceholderComponent, selector: "sv-ng-placeholder-matrixdynamic", inputs: ["question"] }, { type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
3871
3878
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MatrixDynamicComponent, decorators: [{
|
|
3872
3879
|
type: Component,
|
|
3873
3880
|
args: [{
|