survey-angular-ui 2.5.26 → 2.5.28
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 +20 -7
- package/bundles/survey-angular-ui.umd.js.map +1 -1
- package/components/paneldynamic-actions/paneldynamic-add-btn.component.d.ts +1 -0
- package/components/progress/default/progress.component.d.ts +5 -2
- package/esm2015/comment-choice.component.js +3 -2
- package/esm2015/components/paneldynamic-actions/paneldynamic-add-btn.component.js +6 -1
- package/esm2015/components/progress/default/progress.component.js +11 -5
- package/esm2015/components/renderAs/boolean-radio/boolean-radio-item.component.js +2 -2
- package/fesm2015/survey-angular-ui.js +17 -5
- package/fesm2015/survey-angular-ui.js.map +1 -1
- package/package.json +2 -2
|
@@ -2502,7 +2502,8 @@
|
|
|
2502
2502
|
}
|
|
2503
2503
|
Object.defineProperty(SurveyCommentChoiceComponent.prototype, "commentValue", {
|
|
2504
2504
|
get: function () {
|
|
2505
|
-
|
|
2505
|
+
var _a;
|
|
2506
|
+
return ((_a = this.textAreaModel) === null || _a === void 0 ? void 0 : _a.getTextValue()) || "";
|
|
2506
2507
|
},
|
|
2507
2508
|
enumerable: false,
|
|
2508
2509
|
configurable: true
|
|
@@ -3945,7 +3946,7 @@
|
|
|
3945
3946
|
return BooleanRadioItemComponent;
|
|
3946
3947
|
}());
|
|
3947
3948
|
BooleanRadioItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BooleanRadioItemComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3948
|
-
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.
|
|
3949
|
+
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: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3949
3950
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BooleanRadioItemComponent, decorators: [{
|
|
3950
3951
|
type: i0.Component,
|
|
3951
3952
|
args: [{
|
|
@@ -4000,9 +4001,12 @@
|
|
|
4000
4001
|
|
|
4001
4002
|
var ProgressDefaultComponent = /** @class */ (function (_super) {
|
|
4002
4003
|
__extends(ProgressDefaultComponent, _super);
|
|
4003
|
-
function ProgressDefaultComponent() {
|
|
4004
|
-
return _super
|
|
4004
|
+
function ProgressDefaultComponent(changeDetectorRef, viewContainerRef) {
|
|
4005
|
+
return _super.call(this, changeDetectorRef, viewContainerRef) || this;
|
|
4005
4006
|
}
|
|
4007
|
+
ProgressDefaultComponent.prototype.getModel = function () {
|
|
4008
|
+
return this.model;
|
|
4009
|
+
};
|
|
4006
4010
|
ProgressDefaultComponent.prototype.getProgressTextInBarCss = function (css) {
|
|
4007
4011
|
return Survey.SurveyProgressModel.getProgressTextInBarCss(css);
|
|
4008
4012
|
};
|
|
@@ -4010,8 +4014,8 @@
|
|
|
4010
4014
|
return Survey.SurveyProgressModel.getProgressTextUnderBarCss(css);
|
|
4011
4015
|
};
|
|
4012
4016
|
return ProgressDefaultComponent;
|
|
4013
|
-
}(
|
|
4014
|
-
ProgressDefaultComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProgressDefaultComponent, deps:
|
|
4017
|
+
}(BaseAngular));
|
|
4018
|
+
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 });
|
|
4015
4019
|
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>" });
|
|
4016
4020
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProgressDefaultComponent, decorators: [{
|
|
4017
4021
|
type: i0.Component,
|
|
@@ -4019,7 +4023,7 @@
|
|
|
4019
4023
|
selector: "sv-ng-progress-default",
|
|
4020
4024
|
templateUrl: "./progress.component.html"
|
|
4021
4025
|
}]
|
|
4022
|
-
}], propDecorators: { container: [{
|
|
4026
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ViewContainerRef }]; }, propDecorators: { container: [{
|
|
4023
4027
|
type: i0.Input
|
|
4024
4028
|
}], model: [{
|
|
4025
4029
|
type: i0.Input
|
|
@@ -4644,6 +4648,15 @@
|
|
|
4644
4648
|
function PanelDynamicAddBtn() {
|
|
4645
4649
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
4646
4650
|
}
|
|
4651
|
+
Object.defineProperty(PanelDynamicAddBtn.prototype, "isActionEnabled", {
|
|
4652
|
+
get: function () {
|
|
4653
|
+
if (this.model)
|
|
4654
|
+
return this.model.enabled !== false;
|
|
4655
|
+
return this.question.enableAddPanel !== false;
|
|
4656
|
+
},
|
|
4657
|
+
enumerable: false,
|
|
4658
|
+
configurable: true
|
|
4659
|
+
});
|
|
4647
4660
|
PanelDynamicAddBtn.prototype.addPanelClick = function () {
|
|
4648
4661
|
if (!this.isActionEnabled)
|
|
4649
4662
|
return;
|