survey-angular-ui 3.0.0-beta.5 → 3.0.0-beta.7
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 +33 -57
- package/bundles/survey-angular-ui.umd.js.map +1 -1
- package/components/progress/buttons/progress.component.d.ts +3 -17
- package/components/progress/default/progress.component.d.ts +5 -2
- package/esm2015/comment-choice.component.js +3 -2
- package/esm2015/components/progress/buttons/progress.component.js +3 -47
- package/esm2015/components/progress/default/progress.component.js +11 -5
- package/esm2015/components/renderAs/boolean-radio/boolean-radio-item.component.js +5 -3
- package/esm2015/components/renderAs/boolean-radio/boolean-radio.component.js +2 -2
- package/esm2015/survey-content.component.js +9 -3
- package/fesm2015/survey-angular-ui.js +26 -54
- package/fesm2015/survey-angular-ui.js.map +1 -1
- package/package.json +2 -2
- package/survey-content.component.d.ts +2 -0
|
@@ -1456,17 +1456,31 @@
|
|
|
1456
1456
|
this.isSurveyUpdated = true;
|
|
1457
1457
|
};
|
|
1458
1458
|
SurveyContentComponent.prototype.ngAfterViewChecked = function () {
|
|
1459
|
+
_super.prototype.ngAfterViewChecked.call(this);
|
|
1459
1460
|
if (!!this.model && this.isSurveyUpdated) {
|
|
1460
1461
|
this.isSurveyUpdated = false;
|
|
1461
1462
|
this.model.afterRenderSurvey(this.rootEl.nativeElement);
|
|
1462
1463
|
this.model.startTimerFromUI();
|
|
1463
1464
|
}
|
|
1464
|
-
_super.prototype.ngAfterViewChecked.call(this);
|
|
1465
1465
|
};
|
|
1466
|
+
Object.defineProperty(SurveyContentComponent.prototype, "themeStyle", {
|
|
1467
|
+
get: function () {
|
|
1468
|
+
return this.model ? "<style>" + this.model.themeStyle + "</style>" : "";
|
|
1469
|
+
},
|
|
1470
|
+
enumerable: false,
|
|
1471
|
+
configurable: true
|
|
1472
|
+
});
|
|
1473
|
+
Object.defineProperty(SurveyContentComponent.prototype, "resetVariablesStyle", {
|
|
1474
|
+
get: function () {
|
|
1475
|
+
return this.model ? "<style>" + this.model.resetVariablesStyle + "</style>" : "";
|
|
1476
|
+
},
|
|
1477
|
+
enumerable: false,
|
|
1478
|
+
configurable: true
|
|
1479
|
+
});
|
|
1466
1480
|
return SurveyContentComponent;
|
|
1467
1481
|
}(BaseAngular));
|
|
1468
1482
|
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 });
|
|
1469
|
-
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]=\"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: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i4__namespace.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 } });
|
|
1483
|
+
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]=\"model.themeVariables\" [lang]=\"model.locale || 'en'\" [dir]=\"model.localeDir\">\n <ng-container *ngIf=\"model.generateStylesheet\">\n <div style=\"display: none;\" [innerHTML]=\"themeStyle | safeHtml\"></div>\n <div style=\"display: none;\" [innerHTML]=\"resetVariablesStyle | safeHtml\"></div>\n </ng-container>\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: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i4__namespace.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 } });
|
|
1470
1484
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyContentComponent, decorators: [{
|
|
1471
1485
|
type: i0.Component,
|
|
1472
1486
|
args: [{
|
|
@@ -2611,7 +2625,8 @@
|
|
|
2611
2625
|
}
|
|
2612
2626
|
Object.defineProperty(SurveyCommentChoiceComponent.prototype, "commentValue", {
|
|
2613
2627
|
get: function () {
|
|
2614
|
-
|
|
2628
|
+
var _a;
|
|
2629
|
+
return ((_a = this.textAreaModel) === null || _a === void 0 ? void 0 : _a.getTextValue()) || "";
|
|
2615
2630
|
},
|
|
2616
2631
|
enumerable: false,
|
|
2617
2632
|
configurable: true
|
|
@@ -3980,12 +3995,14 @@
|
|
|
3980
3995
|
function BooleanRadioItemComponent() {
|
|
3981
3996
|
}
|
|
3982
3997
|
BooleanRadioItemComponent.prototype.change = function () {
|
|
3983
|
-
this.question.
|
|
3998
|
+
if (!this.question.isInputReadOnly) {
|
|
3999
|
+
this.question.value = this.value;
|
|
4000
|
+
}
|
|
3984
4001
|
};
|
|
3985
4002
|
return BooleanRadioItemComponent;
|
|
3986
4003
|
}());
|
|
3987
4004
|
BooleanRadioItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BooleanRadioItemComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3988
|
-
BooleanRadioItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: BooleanRadioItemComponent, selector: "sv-ng-boolean-radio-item", inputs: { question: "question", value: "value", locText: "locText" }, ngImport: i0__namespace, template: "<div role=\"presentation\" [class]=\"question.getRadioItemClass(question.cssClasses, value)\">\n <label [class]=\"question.cssClasses.radioLabel\">\n <input\n type=\"radio\"\n [attr.name]=\"question.
|
|
4005
|
+
BooleanRadioItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: BooleanRadioItemComponent, selector: "sv-ng-boolean-radio-item", inputs: { question: "question", value: "value", locText: "locText" }, ngImport: i0__namespace, template: "<div role=\"presentation\" [class]=\"question.getRadioItemClass(question.cssClasses, value)\">\n <label [class]=\"question.cssClasses.radioLabel\">\n <input\n type=\"radio\"\n [attr.name]=\"question.questionName\" [attr.aria-errormessage]=\"question.ariaErrormessage\" [value]=\"value\" [checked]=\"question.value == value\" (input)=\"change()\"\n [disabled]=\"question.isDisabledAttr\" [readonly]=\"question.isReadOnlyAttr\" [class]=\"question.cssClasses.itemRadioControl || ''\"\n />\n <span *ngIf=\"question.cssClasses.materialRadioDecorator\" [class]=\"question.cssClasses.materialRadioDecorator\">\n <svg\n *ngIf=\"question.itemSvgIcon\"\n [class]=\"question.cssClasses.itemRadioDecorator\"\n >\n <use [attr.xlink:href]=\"question.itemSvgIcon\"></use>\n </svg>\n </span>\n <span [class]=\"question.cssClasses.radioControlLabel\" [model]=\"locText\" sv-ng-string>\n </span>\n </label>\n</div>\n", components: [{ type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3989
4006
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BooleanRadioItemComponent, decorators: [{
|
|
3990
4007
|
type: i0.Component,
|
|
3991
4008
|
args: [{
|
|
@@ -4006,7 +4023,7 @@
|
|
|
4006
4023
|
return BooleanRadioComponent;
|
|
4007
4024
|
}());
|
|
4008
4025
|
BooleanRadioComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BooleanRadioComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4009
|
-
BooleanRadioComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: BooleanRadioComponent, selector: "sv-ng-boolean-radio-question", inputs: { model: "model" }, ngImport: i0__namespace, template: "<div [class]=\"model.cssClasses.rootRadio\">\n <fieldset role=\"presentation\" [class]=\"model.cssClasses.radioFieldset\">\n <sv-ng-boolean-radio-item *ngIf=\"model.swapOrder\" [value]=\"model.getValueTrue()\" [locText]=\"model.locLabelTrue\" [question]=\"model\" ></sv-ng-boolean-radio-item>\n <sv-ng-boolean-radio-item [value]=\"model.getValueFalse()\" [locText]=\"model.locLabelFalse\" [question]=\"model\" ></sv-ng-boolean-radio-item>\n <sv-ng-boolean-radio-item *ngIf=\"!model.swapOrder\" [value]=\"model.getValueTrue()\" [locText]=\"model.locLabelTrue\" [question]=\"model\" ></sv-ng-boolean-radio-item>\n </fieldset>\n</div>\n", components: [{ type: BooleanRadioItemComponent, selector: "sv-ng-boolean-radio-item", inputs: ["question", "value", "locText"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4026
|
+
BooleanRadioComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: BooleanRadioComponent, selector: "sv-ng-boolean-radio-question", inputs: { model: "model" }, ngImport: i0__namespace, template: "<div [class]=\"model.cssClasses.rootRadio\" (keydown)=\"model.onKeyDownCore($event)\">\n <fieldset role=\"presentation\" [class]=\"model.cssClasses.radioFieldset\">\n <sv-ng-boolean-radio-item *ngIf=\"model.swapOrder\" [value]=\"model.getValueTrue()\" [locText]=\"model.locLabelTrue\" [question]=\"model\" ></sv-ng-boolean-radio-item>\n <sv-ng-boolean-radio-item [value]=\"model.getValueFalse()\" [locText]=\"model.locLabelFalse\" [question]=\"model\" ></sv-ng-boolean-radio-item>\n <sv-ng-boolean-radio-item *ngIf=\"!model.swapOrder\" [value]=\"model.getValueTrue()\" [locText]=\"model.locLabelTrue\" [question]=\"model\" ></sv-ng-boolean-radio-item>\n </fieldset>\n</div>\n", components: [{ type: BooleanRadioItemComponent, selector: "sv-ng-boolean-radio-item", inputs: ["question", "value", "locText"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4010
4027
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BooleanRadioComponent, decorators: [{
|
|
4011
4028
|
type: i0.Component,
|
|
4012
4029
|
args: [{
|
|
@@ -4040,9 +4057,12 @@
|
|
|
4040
4057
|
|
|
4041
4058
|
var ProgressDefaultComponent = /** @class */ (function (_super) {
|
|
4042
4059
|
__extends(ProgressDefaultComponent, _super);
|
|
4043
|
-
function ProgressDefaultComponent() {
|
|
4044
|
-
return _super
|
|
4060
|
+
function ProgressDefaultComponent(changeDetectorRef, viewContainerRef) {
|
|
4061
|
+
return _super.call(this, changeDetectorRef, viewContainerRef) || this;
|
|
4045
4062
|
}
|
|
4063
|
+
ProgressDefaultComponent.prototype.getModel = function () {
|
|
4064
|
+
return this.model;
|
|
4065
|
+
};
|
|
4046
4066
|
ProgressDefaultComponent.prototype.getProgressTextInBarCss = function (css) {
|
|
4047
4067
|
return Survey.SurveyProgressModel.getProgressTextInBarCss(css);
|
|
4048
4068
|
};
|
|
@@ -4050,8 +4070,8 @@
|
|
|
4050
4070
|
return Survey.SurveyProgressModel.getProgressTextUnderBarCss(css);
|
|
4051
4071
|
};
|
|
4052
4072
|
return ProgressDefaultComponent;
|
|
4053
|
-
}(
|
|
4054
|
-
ProgressDefaultComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProgressDefaultComponent, deps:
|
|
4073
|
+
}(BaseAngular));
|
|
4074
|
+
ProgressDefaultComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProgressDefaultComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4055
4075
|
ProgressDefaultComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ProgressDefaultComponent, selector: "sv-ng-progress-default", inputs: { container: "container", model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div [class]=\"model.getProgressCssClasses(container)\">\n <div [class]=\"model.css.progressBar\" [style.width]=\"model.progressValue + '%'\"\n role=\"progressbar\" aria-valuemin=\"0\" aria-valuemax=\"100\" [attr.aria-label]=\"model.progressBarAriaLabel\">\n <span [class]=\"getProgressTextInBarCss(model.css)\">\n {{ model.progressText }}\n </span>\n </div>\n <span [class]=\"getProgressTextUnderBarCss(model.css)\"> {{ model.progressText }} </span>\n </div>\n</ng-template>" });
|
|
4056
4076
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProgressDefaultComponent, decorators: [{
|
|
4057
4077
|
type: i0.Component,
|
|
@@ -4059,7 +4079,7 @@
|
|
|
4059
4079
|
selector: "sv-ng-progress-default",
|
|
4060
4080
|
templateUrl: "./progress.component.html"
|
|
4061
4081
|
}]
|
|
4062
|
-
}], propDecorators: { container: [{
|
|
4082
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ViewContainerRef }]; }, propDecorators: { container: [{
|
|
4063
4083
|
type: i0.Input
|
|
4064
4084
|
}], model: [{
|
|
4065
4085
|
type: i0.Input
|
|
@@ -4073,56 +4093,15 @@
|
|
|
4073
4093
|
var ProgressButtonsComponent = /** @class */ (function (_super) {
|
|
4074
4094
|
__extends(ProgressButtonsComponent, _super);
|
|
4075
4095
|
function ProgressButtonsComponent(changeDetectorRef, viewContainerRef) {
|
|
4076
|
-
|
|
4077
|
-
_this.hasScroller = false;
|
|
4078
|
-
_this.canShowHeader = false;
|
|
4079
|
-
_this.canShowFooter = false;
|
|
4080
|
-
_this.canShowItemTitles = true;
|
|
4081
|
-
return _this;
|
|
4096
|
+
return _super.call(this, changeDetectorRef, viewContainerRef) || this;
|
|
4082
4097
|
}
|
|
4083
4098
|
ProgressButtonsComponent.prototype.getModel = function () {
|
|
4084
4099
|
return this.model;
|
|
4085
4100
|
};
|
|
4086
|
-
ProgressButtonsComponent.prototype.onResize = function (canShowItemTitles) {
|
|
4087
|
-
this.canShowItemTitles = canShowItemTitles;
|
|
4088
|
-
this.canShowHeader = !this.canShowItemTitles;
|
|
4089
|
-
this.detectChanges();
|
|
4090
|
-
};
|
|
4091
|
-
ProgressButtonsComponent.prototype.onUpdateScroller = function (hasScroller) {
|
|
4092
|
-
this.hasScroller = hasScroller;
|
|
4093
|
-
this.detectChanges();
|
|
4094
|
-
};
|
|
4095
|
-
ProgressButtonsComponent.prototype.onUpdateSettings = function () {
|
|
4096
|
-
this.canShowItemTitles = this.model.showItemTitles;
|
|
4097
|
-
this.canShowFooter = !this.model.showItemTitles;
|
|
4098
|
-
this.detectChanges();
|
|
4099
|
-
};
|
|
4100
|
-
ProgressButtonsComponent.prototype.ngOnInit = function () {
|
|
4101
|
-
_super.prototype.ngOnInit.call(this);
|
|
4102
|
-
};
|
|
4103
|
-
ProgressButtonsComponent.prototype.ngOnChanges = function (changes) {
|
|
4104
|
-
};
|
|
4105
|
-
ProgressButtonsComponent.prototype.clickScrollButton = function (isLeftScroll) {
|
|
4106
|
-
if (this.progressButtonsListContainer) {
|
|
4107
|
-
this.progressButtonsListContainer.nativeElement.scrollLeft += (isLeftScroll ? -1 : 1) * 70;
|
|
4108
|
-
}
|
|
4109
|
-
};
|
|
4110
|
-
ProgressButtonsComponent.prototype.ngAfterViewInit = function () {
|
|
4111
|
-
var _a;
|
|
4112
|
-
if (!!((_a = this.progressButtonsListContainer) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
4113
|
-
var element = this.progressButtonsListContainer.nativeElement;
|
|
4114
|
-
this.respManager = new Survey.ProgressButtonsResponsivityManager(this.model, element, this);
|
|
4115
|
-
}
|
|
4116
|
-
};
|
|
4117
|
-
ProgressButtonsComponent.prototype.ngOnDestroy = function () {
|
|
4118
|
-
var _a;
|
|
4119
|
-
_super.prototype.ngOnDestroy.call(this);
|
|
4120
|
-
(_a = this.respManager) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
4121
|
-
};
|
|
4122
4101
|
return ProgressButtonsComponent;
|
|
4123
4102
|
}(BaseAngular));
|
|
4124
4103
|
ProgressButtonsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProgressButtonsComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4125
|
-
ProgressButtonsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ProgressButtonsComponent, selector: "sv-ng-progress-buttons", inputs: { model: "model", survey: "survey", container: "container" },
|
|
4104
|
+
ProgressButtonsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ProgressButtonsComponent, selector: "sv-ng-progress-buttons", inputs: { model: "model", survey: "survey", container: "container" }, usesInheritance: true, ngImport: i0__namespace, template: "<div [class]=\"model.getRootCss(container)\" [style.maxWidth]=\"model.progressWidth\"\nrole=\"tablist\" [attr.aria-label]=\"model.progressBarAriaLabel\"\n(keydown)=\"model.onKeyDown($event)\"\n>\n <div [class]=\"survey.css.progressButtonsContainer\" role=\"presentation\">\n <div\n [class]=\"survey.css.progressButtonsListContainer\" role=\"presentation\">\n <ul [class]=\"survey.css.progressButtonsList\" role=\"presentation\">\n <li\n *ngFor=\"let page of model.visiblePages; index as index\"\n [class]=\"model.getListElementCss(index)\"\n [attr.data-page-number]=\"model.getItemNumber(page)\"\n role=\"presentation\">\n <div *ngIf=\"model.showItemTitles\"\n [class]=\"survey.css.progressButtonsPageTitle\"\n [title]=\"page.renderedNavigationTitle\"\n (click)=\"model.isListElementClickable(index) ? model.clickListElement(page) : null\"\n >\n <sv-ng-string [model]=\"page.locNavigationTitle\"></sv-ng-string>\n </div>\n <div *ngIf=\"model.showItemDescriptions\"\n [class]=\"survey.css.progressButtonsPageDescription\"\n [title]=\"page.navigationDescription\"\n (click)=\"model.isListElementClickable(index) ? model.clickListElement(page) : null\"\n >\n {{ page.navigationDescription }}\n </div>\n <button [class]=\"survey.css.progressButtonsButton\"\n (click)=\"model.isListElementClickable(index) ? model.clickListElement(page) : undefined\"\n role=\"tab\"\n type=\"button\"\n [attr.aria-selected]=\"model.isPageSelected(index)\"\n [attr.aria-label]=\"model.getButtonAriaLabel(page)\"\n [attr.tabindex]=\"model.getTabIndex(index)\"\n [attr.data-page-index]=\"index\"\n >\n <ng-container *ngIf=\"model.showItemNumbers\">{{ model.getItemNumber(page) }}</ng-container>\n <ng-container *ngIf=\"!model.showItemNumbers && model.isListElementPassed(index)\">\n <svg [class]=\"survey.css.progressButtonsCheckIcon\">\n <use [attr.xlink:href]=\"'#icon-' + survey.css.progressButtonsCheckIconId\"></use>\n </svg>\n </ng-container>\n <ng-container *ngIf=\"!model.showItemNumbers && !model.isListElementPassed(index)\">\n <div [class]=\"survey.css.progressButtonsDot\"></div>\n </ng-container>\n </button>\n </li>\n </ul>\n </div>\n </div>\n</div>", components: [{ type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }], directives: [{ type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4126
4105
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProgressButtonsComponent, decorators: [{
|
|
4127
4106
|
type: i0.Component,
|
|
4128
4107
|
args: [{
|
|
@@ -4135,9 +4114,6 @@
|
|
|
4135
4114
|
type: i0.Input
|
|
4136
4115
|
}], container: [{
|
|
4137
4116
|
type: i0.Input
|
|
4138
|
-
}], progressButtonsListContainer: [{
|
|
4139
|
-
type: i0.ViewChild,
|
|
4140
|
-
args: ["progressButtonsListContainer"]
|
|
4141
4117
|
}] } });
|
|
4142
4118
|
AngularComponentFactory.Instance.registerComponent("sv-progress-buttons", ProgressButtonsComponent);
|
|
4143
4119
|
|