survey-angular-ui 1.9.80 → 1.9.82
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 +62 -61
- package/bundles/survey-angular-ui.umd.js.map +1 -1
- package/esm2015/components/element-header/element-header.component.js +4 -3
- package/esm2015/components/element-title/dynamic-head.component.js +2 -2
- package/esm2015/components/progress/toc/progress.component.js +3 -2
- package/esm2015/question.component.js +3 -9
- package/esm2015/question.js +9 -1
- package/esm2015/questions/custom.component.js +3 -8
- package/esm2015/questions/matrixcell.component.js +3 -7
- package/esm2015/questions/text.component.js +6 -2
- package/esm2015/survey-content.component.js +2 -2
- package/fesm2015/survey-angular-ui.js +54 -58
- package/fesm2015/survey-angular-ui.js.map +1 -1
- package/package.json +1 -1
- package/question.d.ts +1 -0
- package/questions/text.component.d.ts +1 -0
|
@@ -900,7 +900,7 @@
|
|
|
900
900
|
return DynamicHeadComponent;
|
|
901
901
|
}(EmbeddedViewContentComponent));
|
|
902
902
|
DynamicHeadComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DynamicHeadComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
903
|
-
DynamicHeadComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DynamicHeadComponent, selector: "sv-ng-dynamic-head", inputs: { tagName: "tagName", element: "element" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <ng-container [ngSwitch]=\"tagName\">\n <h1 *ngSwitchCase=\"'h1'\" [class]=\"element.cssTitle\" [attr.id]=\"element.ariaTitleId\" [attr.tabindex]=\"element.titleTabIndex\" [attr.aria-expanded]=\"element.titleAriaExpanded\" [attr.role]=\"
|
|
903
|
+
DynamicHeadComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DynamicHeadComponent, selector: "sv-ng-dynamic-head", inputs: { tagName: "tagName", element: "element" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <ng-container [ngSwitch]=\"tagName\">\n <h1 *ngSwitchCase=\"'h1'\" [class]=\"element.cssTitle\" [attr.id]=\"element.ariaTitleId\" [attr.tabindex]=\"element.titleTabIndex\" [attr.aria-expanded]=\"element.titleAriaExpanded\" [attr.role]=\"element.titleAriaRole\" [attr.aria-label]=\"ariaLabel\"><ng-container *ngTemplateOutlet=\"titleContent\"></ng-container></h1>\n <h2 *ngSwitchCase=\"'h2'\"[class]=\"element.cssTitle\" [attr.id]=\"element.ariaTitleId\" [attr.tabindex]=\"element.titleTabIndex\" [attr.aria-expanded]=\"element.titleAriaExpanded\" [attr.role]=\"element.titleAriaRole\" [attr.aria-label]=\"ariaLabel\"><ng-container *ngTemplateOutlet=\"titleContent\"></ng-container></h2>\n <h3 *ngSwitchCase=\"'h3'\"[class]=\"element.cssTitle\" [attr.id]=\"element.ariaTitleId\" [attr.tabindex]=\"element.titleTabIndex\" [attr.aria-expanded]=\"element.titleAriaExpanded\" [attr.role]=\"element.titleAriaRole\" [attr.aria-label]=\"ariaLabel\"><ng-container *ngTemplateOutlet=\"titleContent\"></ng-container></h3>\n <h4 *ngSwitchCase=\"'h4'\"[class]=\"element.cssTitle\" [attr.id]=\"element.ariaTitleId\" [attr.tabindex]=\"element.titleTabIndex\" [attr.aria-expanded]=\"element.titleAriaExpanded\" [attr.role]=\"element.titleAriaRole\" [attr.aria-label]=\"ariaLabel\"><ng-container *ngTemplateOutlet=\"titleContent\"></ng-container></h4>\n <h5 *ngSwitchCase=\"'h5'\"[class]=\"element.cssTitle\" [attr.id]=\"element.ariaTitleId\" [attr.tabindex]=\"element.titleTabIndex\" [attr.aria-expanded]=\"element.titleAriaExpanded\" [attr.role]=\"element.titleAriaRole\" [attr.aria-label]=\"ariaLabel\"><ng-container *ngTemplateOutlet=\"titleContent\"></ng-container></h5>\n <h6 *ngSwitchCase=\"'h6'\"[class]=\"element.cssTitle\" [attr.id]=\"element.ariaTitleId\" [attr.tabindex]=\"element.titleTabIndex\" [attr.aria-expanded]=\"element.titleAriaExpanded\" [attr.role]=\"element.titleAriaRole\" [attr.aria-label]=\"ariaLabel\"><ng-container *ngTemplateOutlet=\"titleContent\"></ng-container></h6>\n </ng-container>\n <ng-template #titleContent>\n <ng-content></ng-content>\n </ng-template>\n</ng-template>", styles: [":host{display:none}\n"], directives: [{ type: i2__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i2__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
904
904
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DynamicHeadComponent, decorators: [{
|
|
905
905
|
type: i0.Component,
|
|
906
906
|
args: [{
|
|
@@ -1262,7 +1262,7 @@
|
|
|
1262
1262
|
return SurveyContentComponent;
|
|
1263
1263
|
}(BaseAngular));
|
|
1264
1264
|
SurveyContentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyContentComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1265
|
-
SurveyContentComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, template: "<ng-template #template>\n <div #surveyContainer *ngIf=\"!!model\" [class]=\"model.getRootCss()\">\n <form onsubmit=\"return false;\">\n <div class=\"sv_custom_header\" [hidden]=\"model.hasLogo\"></div>\n <div [class]=\"model.css.container\">\n <div *ngIf=\"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]=\"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 <!-- ko if: activePage -->\n <ng-container *ngIf=\"model.activePage\">\n <sv-ng-page [model]=\"model.activePage\" [survey]=\"model\"></sv-ng-page>\n </ng-container>\n <!-- ko if: activePage.rows.length == 0 && $data.emptyPageTemplate -->\n <!-- ko template: { name: emptyPageTemplate, data: $data.emptyPageTemplateData || $data } -->\n <!-- /ko -->\n <!-- /ko -->\n <!-- /ko -->\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'contentBottom' } }\"></ng-template>\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\"></div>\n <div *ngIf=\"model.state === 'completedbefore'\" [class]=\"model.css.body\"\n [innerHtml]=\"model.processedCompletedBeforeHtml\"></div>\n <div *ngIf=\"model.state === 'loading'\" [class]=\"model.css.body\" [innerHtml]=\"model.processedLoadingHtml\"></div>\n <div *ngIf=\"model.state === 'empty'\" [class]=\"model.css.bodyEmpty\">{{model.emptySurveyText}}</div>\n </div>\n </form>\n <sv-brand-info *ngIf=\"model.showBrandInfo\"></sv-brand-info>\n <sv-notifier [notifier]=\"model.notifier\"></sv-notifier>\n </div>\n</ng-template>", components: [{ type: SurveyHeaderComponent, selector: "'[sv-ng-survey-header]'", inputs: ["survey"] }, { type: PageComponent, selector: "page, sv-ng-page", inputs: ["model", "survey"] }, { type: BrandInfoComponent, selector: "sv-brand-info" }, { type: NotifierComponent, selector: "sv-notifier", inputs: ["notifier"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i3__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i3__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1265
|
+
SurveyContentComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, template: "<ng-template #template>\n <div #surveyContainer *ngIf=\"!!model\" [class]=\"model.getRootCss()\" [style.backgroundImage]=\"model.renderBackgroundImage\">\n <form onsubmit=\"return false;\" [style.backgroundColor]=\"model.renderBackgroundOpacity\">\n <div class=\"sv_custom_header\" [hidden]=\"model.hasLogo\"></div>\n <div [class]=\"model.css.container\">\n <div *ngIf=\"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]=\"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 <!-- ko if: activePage -->\n <ng-container *ngIf=\"model.activePage\">\n <sv-ng-page [model]=\"model.activePage\" [survey]=\"model\"></sv-ng-page>\n </ng-container>\n <!-- ko if: activePage.rows.length == 0 && $data.emptyPageTemplate -->\n <!-- ko template: { name: emptyPageTemplate, data: $data.emptyPageTemplateData || $data } -->\n <!-- /ko -->\n <!-- /ko -->\n <!-- /ko -->\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'contentBottom' } }\"></ng-template>\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\"></div>\n <div *ngIf=\"model.state === 'completedbefore'\" [class]=\"model.css.body\"\n [innerHtml]=\"model.processedCompletedBeforeHtml\"></div>\n <div *ngIf=\"model.state === 'loading'\" [class]=\"model.css.body\" [innerHtml]=\"model.processedLoadingHtml\"></div>\n <div *ngIf=\"model.state === 'empty'\" [class]=\"model.css.bodyEmpty\">{{model.emptySurveyText}}</div>\n </div>\n </form>\n <sv-brand-info *ngIf=\"model.showBrandInfo\"></sv-brand-info>\n <sv-notifier [notifier]=\"model.notifier\"></sv-notifier>\n </div>\n</ng-template>", components: [{ type: SurveyHeaderComponent, selector: "'[sv-ng-survey-header]'", inputs: ["survey"] }, { type: PageComponent, selector: "page, sv-ng-page", inputs: ["model", "survey"] }, { type: BrandInfoComponent, selector: "sv-brand-info" }, { type: NotifierComponent, selector: "sv-notifier", inputs: ["notifier"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i3__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i3__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1266
1266
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyContentComponent, decorators: [{
|
|
1267
1267
|
type: i0.Component,
|
|
1268
1268
|
args: [{
|
|
@@ -1353,6 +1353,51 @@
|
|
|
1353
1353
|
type: i0.Input
|
|
1354
1354
|
}] } });
|
|
1355
1355
|
|
|
1356
|
+
var QuestionAngular = /** @class */ (function (_super) {
|
|
1357
|
+
__extends(QuestionAngular, _super);
|
|
1358
|
+
function QuestionAngular() {
|
|
1359
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1360
|
+
}
|
|
1361
|
+
QuestionAngular.prototype.getModel = function () {
|
|
1362
|
+
return this.model;
|
|
1363
|
+
};
|
|
1364
|
+
QuestionAngular.prototype.ngAfterViewInit = function () {
|
|
1365
|
+
var _a;
|
|
1366
|
+
if (!!this.model) {
|
|
1367
|
+
this.model.afterRenderQuestionElement((_a = this.elementContentRef) === null || _a === void 0 ? void 0 : _a.nativeElement);
|
|
1368
|
+
}
|
|
1369
|
+
};
|
|
1370
|
+
QuestionAngular.prototype.ngOnDestroy = function () {
|
|
1371
|
+
var _a;
|
|
1372
|
+
if (!!this.model) {
|
|
1373
|
+
this.model.beforeDestroyQuestionElement((_a = this.elementContentRef) === null || _a === void 0 ? void 0 : _a.nativeElement);
|
|
1374
|
+
}
|
|
1375
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
1376
|
+
};
|
|
1377
|
+
return QuestionAngular;
|
|
1378
|
+
}(BaseAngular));
|
|
1379
|
+
QuestionAngular.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionAngular, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1380
|
+
QuestionAngular.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionAngular, selector: "ng-component", inputs: { model: "model" }, viewQueries: [{ propertyName: "elementContentRef", first: true, predicate: ["contentElement"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "", isInline: true });
|
|
1381
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionAngular, decorators: [{
|
|
1382
|
+
type: i0.Component,
|
|
1383
|
+
args: [{
|
|
1384
|
+
template: ""
|
|
1385
|
+
}]
|
|
1386
|
+
}], propDecorators: { model: [{
|
|
1387
|
+
type: i0.Input
|
|
1388
|
+
}], elementContentRef: [{
|
|
1389
|
+
type: i0.ViewChild,
|
|
1390
|
+
args: ["contentElement"]
|
|
1391
|
+
}] } });
|
|
1392
|
+
function getComponentName(question) {
|
|
1393
|
+
if (question.customWidget)
|
|
1394
|
+
return "survey-customwidget";
|
|
1395
|
+
if (question.isDefaultRendering()) {
|
|
1396
|
+
return question.getTemplate() + "-question";
|
|
1397
|
+
}
|
|
1398
|
+
return question.getComponentName();
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1356
1401
|
var ErrorsComponent = /** @class */ (function () {
|
|
1357
1402
|
function ErrorsComponent(viewContainerRef) {
|
|
1358
1403
|
this.viewContainerRef = viewContainerRef;
|
|
@@ -1444,7 +1489,7 @@
|
|
|
1444
1489
|
return ElementHeaderComponent;
|
|
1445
1490
|
}());
|
|
1446
1491
|
ElementHeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ElementHeaderComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1447
|
-
ElementHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ElementHeaderComponent, selector: "'[sv-ng-element-header]'", inputs: { element: "element" }, host: { listeners: { "click": "click()" }, properties: { "class": "this.rootClass" } }, ngImport: i0__namespace, template: "<sv-ng-element-title [element]=\"element\"></sv-ng-element-title>\n<div *ngIf=\"element.hasDescriptionUnderTitle\" [class]=\"element.cssDescription\" [model]=\"element.locDescription\" sv-ng-string></div>", components: [{ type: ElementTitleComponent, selector: "sv-ng-element-title", inputs: ["element"] }, { type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1492
|
+
ElementHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ElementHeaderComponent, selector: "'[sv-ng-element-header]'", inputs: { element: "element" }, host: { listeners: { "click": "click()" }, properties: { "class": "this.rootClass" } }, ngImport: i0__namespace, template: "<sv-ng-element-title [element]=\"element\"></sv-ng-element-title>\n<div *ngIf=\"element.hasDescriptionUnderTitle\" [class]=\"element.cssDescription\" [model]=\"element.locDescription\" sv-ng-string></div>\n<ng-container *ngIf=\"!!element.additionalTitleToolbar\">\n<sv-ng-action-bar [model]=\"element.additionalTitleToolbar\"></sv-ng-action-bar>\n</ng-container>", components: [{ type: ElementTitleComponent, selector: "sv-ng-element-title", inputs: ["element"] }, { type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }, { type: ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1448
1493
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ElementHeaderComponent, decorators: [{
|
|
1449
1494
|
type: i0.Component,
|
|
1450
1495
|
args: [{
|
|
@@ -1501,14 +1546,7 @@
|
|
|
1501
1546
|
this.model.afterRender((_b = this.rootEl) === null || _b === void 0 ? void 0 : _b.nativeElement);
|
|
1502
1547
|
}
|
|
1503
1548
|
};
|
|
1504
|
-
QuestionComponent.prototype.getComponentName = function () {
|
|
1505
|
-
if (this.model.customWidget)
|
|
1506
|
-
return "survey-customwidget";
|
|
1507
|
-
if (this.model.isDefaultRendering()) {
|
|
1508
|
-
return this.model.getTemplate() + "-question";
|
|
1509
|
-
}
|
|
1510
|
-
return this.model.getComponentName();
|
|
1511
|
-
};
|
|
1549
|
+
QuestionComponent.prototype.getComponentName = function () { return getComponentName(this.model); };
|
|
1512
1550
|
QuestionComponent.prototype.getQuestionContentWrapperComponentName = function () {
|
|
1513
1551
|
return this.model.survey.getQuestionContentWrapperComponentName(this.model) || this.getComponentName();
|
|
1514
1552
|
};
|
|
@@ -2106,43 +2144,6 @@
|
|
|
2106
2144
|
}] } });
|
|
2107
2145
|
AngularComponentFactory.Instance.registerComponent("sv-logo-image", LogoImageComponent);
|
|
2108
2146
|
|
|
2109
|
-
var QuestionAngular = /** @class */ (function (_super) {
|
|
2110
|
-
__extends(QuestionAngular, _super);
|
|
2111
|
-
function QuestionAngular() {
|
|
2112
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
2113
|
-
}
|
|
2114
|
-
QuestionAngular.prototype.getModel = function () {
|
|
2115
|
-
return this.model;
|
|
2116
|
-
};
|
|
2117
|
-
QuestionAngular.prototype.ngAfterViewInit = function () {
|
|
2118
|
-
var _a;
|
|
2119
|
-
if (!!this.model) {
|
|
2120
|
-
this.model.afterRenderQuestionElement((_a = this.elementContentRef) === null || _a === void 0 ? void 0 : _a.nativeElement);
|
|
2121
|
-
}
|
|
2122
|
-
};
|
|
2123
|
-
QuestionAngular.prototype.ngOnDestroy = function () {
|
|
2124
|
-
var _a;
|
|
2125
|
-
if (!!this.model) {
|
|
2126
|
-
this.model.beforeDestroyQuestionElement((_a = this.elementContentRef) === null || _a === void 0 ? void 0 : _a.nativeElement);
|
|
2127
|
-
}
|
|
2128
|
-
_super.prototype.ngOnDestroy.call(this);
|
|
2129
|
-
};
|
|
2130
|
-
return QuestionAngular;
|
|
2131
|
-
}(BaseAngular));
|
|
2132
|
-
QuestionAngular.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionAngular, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2133
|
-
QuestionAngular.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionAngular, selector: "ng-component", inputs: { model: "model" }, viewQueries: [{ propertyName: "elementContentRef", first: true, predicate: ["contentElement"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "", isInline: true });
|
|
2134
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionAngular, decorators: [{
|
|
2135
|
-
type: i0.Component,
|
|
2136
|
-
args: [{
|
|
2137
|
-
template: ""
|
|
2138
|
-
}]
|
|
2139
|
-
}], propDecorators: { model: [{
|
|
2140
|
-
type: i0.Input
|
|
2141
|
-
}], elementContentRef: [{
|
|
2142
|
-
type: i0.ViewChild,
|
|
2143
|
-
args: ["contentElement"]
|
|
2144
|
-
}] } });
|
|
2145
|
-
|
|
2146
2147
|
var CharacterCounterComponent = /** @class */ (function (_super) {
|
|
2147
2148
|
__extends(CharacterCounterComponent, _super);
|
|
2148
2149
|
function CharacterCounterComponent() {
|
|
@@ -2174,10 +2175,18 @@
|
|
|
2174
2175
|
function TextQuestionComponent() {
|
|
2175
2176
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2176
2177
|
}
|
|
2178
|
+
Object.defineProperty(TextQuestionComponent.prototype, "value", {
|
|
2179
|
+
get: function () {
|
|
2180
|
+
var _a;
|
|
2181
|
+
return (_a = this.model.value) !== null && _a !== void 0 ? _a : "";
|
|
2182
|
+
},
|
|
2183
|
+
enumerable: false,
|
|
2184
|
+
configurable: true
|
|
2185
|
+
});
|
|
2177
2186
|
return TextQuestionComponent;
|
|
2178
2187
|
}(QuestionAngular));
|
|
2179
2188
|
TextQuestionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TextQuestionComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2180
|
-
TextQuestionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TextQuestionComponent, selector: "sv-ng-text-question", usesInheritance: true, ngImport: i0__namespace, template: " <ng-container [ngTemplateOutlet]=\"input\" *ngIf=\"!model.dataListId && !model.isReadOnlyRenderDiv()\"></ng-container>\n <div *ngIf=\"model.dataListId && !model.isReadOnlyRenderDiv()\">\n <ng-container [ngTemplateOutlet]=\"input\"></ng-container>\n <datalist [id]=\"model.dataListId\">\n <option *ngFor=\"let dataListItem of model.dataList\" [value]=\"dataListItem\"></option>\n </datalist>\n </div>\n <div *ngIf=\"model.isReadOnlyRenderDiv()\" #contentElement>{{ model.value }}</div>\n <ng-template #input>\n <input [style]=\"model.inputStyle\" [class]=\"model.getControlClass()\" [attr.list]=\"model.dataListId\"\n (change)=\"model.onChange($event)\" [
|
|
2189
|
+
TextQuestionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TextQuestionComponent, selector: "sv-ng-text-question", usesInheritance: true, ngImport: i0__namespace, template: " <ng-container [ngTemplateOutlet]=\"input\" *ngIf=\"!model.dataListId && !model.isReadOnlyRenderDiv()\"></ng-container>\n <div *ngIf=\"model.dataListId && !model.isReadOnlyRenderDiv()\">\n <ng-container [ngTemplateOutlet]=\"input\"></ng-container>\n <datalist [id]=\"model.dataListId\">\n <option *ngFor=\"let dataListItem of model.dataList\" [value]=\"dataListItem\"></option>\n </datalist>\n </div>\n <div *ngIf=\"model.isReadOnlyRenderDiv()\" #contentElement>{{ model.value }}</div>\n <ng-template #input>\n <input [style]=\"model.inputStyle\" [class]=\"model.getControlClass()\" [attr.list]=\"model.dataListId\"\n (change)=\"model.onChange($event)\" [value]=\"value\" [disabled]=\"model.isInputReadOnly\" name=\"user\" [type]=\"model.inputType\" [id]=\"model.inputId\" [attr.placeholder]=\"model.renderedPlaceholder || ''\"\n (keyup)=\"model.onKeyUp($event)\" (keydown)=\"model.onKeyDown($event)\" (blur)=\"model.onBlur($event)\" (focus)=\"model.onFocus($event)\" (compositionupdate)=\"model.onCompositionUpdate($event)\" \n [attr.size] = \"model.renderedInputSize\" [attr.maxlength]= \"model.getMaxLength()\" [attr.min]=\"model.renderedMin\"\n [attr.max]=\"model.renderedMax\" [attr.step]=\"model.renderedStep\" [attr.max]=\"model.renderedMax\" [attr.aria-required]=\"model.ariaRequired\"\n [attr.aria-label]=\"model.ariaLabel\" [attr.aria-invalid]=\"model.ariaInvalid\" [attr.aria-describedby]=\"model.ariaDescribedBy\" [attr.autocomplete]=\"model.autocomplete\" #contentElement/>\n <sv-ng-character-counter *ngIf=\"model.getMaxLength()\" \n [counter]=\"model.characterCounter\"\n [remainingCharacterCounter]=\"model.cssClasses.remainingCharacterCounter\">\n </sv-ng-character-counter>\n </ng-template>", styles: [""], components: [{ type: CharacterCounterComponent, selector: "sv-ng-character-counter", inputs: ["counter", "remainingCharacterCounter"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i3__namespace.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
|
|
2181
2190
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TextQuestionComponent, decorators: [{
|
|
2182
2191
|
type: i0.Component,
|
|
2183
2192
|
args: [{
|
|
@@ -3248,6 +3257,7 @@
|
|
|
3248
3257
|
return _this;
|
|
3249
3258
|
}
|
|
3250
3259
|
ProgressTocComponent.prototype.createProgressTOCModel = function () {
|
|
3260
|
+
this.containerCss = Survey.getTocRootCss(this.model);
|
|
3251
3261
|
this.listModel = Survey.createTOCListModel(this.model);
|
|
3252
3262
|
};
|
|
3253
3263
|
ProgressTocComponent.prototype.ngOnInit = function () {
|
|
@@ -3956,12 +3966,7 @@
|
|
|
3956
3966
|
enumerable: false,
|
|
3957
3967
|
configurable: true
|
|
3958
3968
|
});
|
|
3959
|
-
MatrixCellComponent.prototype.getComponentName = function (element) {
|
|
3960
|
-
if (element.customWidget) {
|
|
3961
|
-
return "survey-customwidget";
|
|
3962
|
-
}
|
|
3963
|
-
return element.getType() + "-question";
|
|
3964
|
-
};
|
|
3969
|
+
MatrixCellComponent.prototype.getComponentName = function (element) { return getComponentName(element); };
|
|
3965
3970
|
MatrixCellComponent.prototype.getHeaders = function () {
|
|
3966
3971
|
return this.cell.headers;
|
|
3967
3972
|
};
|
|
@@ -4257,12 +4262,7 @@
|
|
|
4257
4262
|
enumerable: false,
|
|
4258
4263
|
configurable: true
|
|
4259
4264
|
});
|
|
4260
|
-
CustomQuestionComponent.prototype.getComponentName = function (element) {
|
|
4261
|
-
if (element.customWidget) {
|
|
4262
|
-
return "survey-customwidget";
|
|
4263
|
-
}
|
|
4264
|
-
return element.getTemplate() + "-question";
|
|
4265
|
-
};
|
|
4265
|
+
CustomQuestionComponent.prototype.getComponentName = function (element) { return getComponentName(element); };
|
|
4266
4266
|
return CustomQuestionComponent;
|
|
4267
4267
|
}(QuestionAngular));
|
|
4268
4268
|
CustomQuestionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomQuestionComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
@@ -4499,6 +4499,7 @@
|
|
|
4499
4499
|
exports.TextQuestionComponent = TextQuestionComponent;
|
|
4500
4500
|
exports.TimerPanelComponent = TimerPanelComponent;
|
|
4501
4501
|
exports.VisibleDirective = VisibleDirective;
|
|
4502
|
+
exports.getComponentName = getComponentName;
|
|
4502
4503
|
|
|
4503
4504
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4504
4505
|
|