survey-angular-ui 2.5.25 → 2.5.27
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 +16 -4
- package/bundles/survey-angular-ui.umd.js.map +1 -1
- package/components/paneldynamic-actions/paneldynamic-add-btn.component.d.ts +1 -0
- package/esm2015/comment-choice.component.js +3 -2
- package/esm2015/components/paneldynamic-actions/paneldynamic-add-btn.component.js +6 -1
- 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/fesm2015/survey-angular-ui.js +12 -4
- package/fesm2015/survey-angular-ui.js.map +1 -1
- package/package.json +3 -3
|
@@ -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
|
|
@@ -3938,12 +3939,14 @@
|
|
|
3938
3939
|
function BooleanRadioItemComponent() {
|
|
3939
3940
|
}
|
|
3940
3941
|
BooleanRadioItemComponent.prototype.change = function () {
|
|
3941
|
-
this.question.
|
|
3942
|
+
if (!this.question.isInputReadOnly) {
|
|
3943
|
+
this.question.value = this.value;
|
|
3944
|
+
}
|
|
3942
3945
|
};
|
|
3943
3946
|
return BooleanRadioItemComponent;
|
|
3944
3947
|
}());
|
|
3945
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 });
|
|
3946
|
-
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"] }] });
|
|
3947
3950
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BooleanRadioItemComponent, decorators: [{
|
|
3948
3951
|
type: i0.Component,
|
|
3949
3952
|
args: [{
|
|
@@ -3964,7 +3967,7 @@
|
|
|
3964
3967
|
return BooleanRadioComponent;
|
|
3965
3968
|
}());
|
|
3966
3969
|
BooleanRadioComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BooleanRadioComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3967
|
-
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: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3970
|
+
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: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3968
3971
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BooleanRadioComponent, decorators: [{
|
|
3969
3972
|
type: i0.Component,
|
|
3970
3973
|
args: [{
|
|
@@ -4642,6 +4645,15 @@
|
|
|
4642
4645
|
function PanelDynamicAddBtn() {
|
|
4643
4646
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
4644
4647
|
}
|
|
4648
|
+
Object.defineProperty(PanelDynamicAddBtn.prototype, "isActionEnabled", {
|
|
4649
|
+
get: function () {
|
|
4650
|
+
if (this.model)
|
|
4651
|
+
return this.model.enabled !== false;
|
|
4652
|
+
return this.question.enableAddPanel !== false;
|
|
4653
|
+
},
|
|
4654
|
+
enumerable: false,
|
|
4655
|
+
configurable: true
|
|
4656
|
+
});
|
|
4645
4657
|
PanelDynamicAddBtn.prototype.addPanelClick = function () {
|
|
4646
4658
|
if (!this.isActionEnabled)
|
|
4647
4659
|
return;
|