survey-angular-ui 2.5.23 → 2.5.25
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 -2
- package/bundles/survey-angular-ui.umd.js.map +1 -1
- package/components/paneldynamic-actions/paneldynamic-add-btn.component.d.ts +1 -0
- package/components/paneldynamic-actions/paneldynamic-remove-btn.component.d.ts +1 -0
- package/esm2015/components/paneldynamic-actions/paneldynamic-add-btn.component.js +7 -2
- package/esm2015/components/paneldynamic-actions/paneldynamic-remove-btn.component.js +7 -2
- package/fesm2015/survey-angular-ui.js +12 -2
- package/fesm2015/survey-angular-ui.js.map +1 -1
- package/package.json +2 -2
|
@@ -4615,6 +4615,13 @@
|
|
|
4615
4615
|
enumerable: false,
|
|
4616
4616
|
configurable: true
|
|
4617
4617
|
});
|
|
4618
|
+
Object.defineProperty(PaneldynamicAction.prototype, "isActionEnabled", {
|
|
4619
|
+
get: function () {
|
|
4620
|
+
return !this.model || this.model.enabled !== false;
|
|
4621
|
+
},
|
|
4622
|
+
enumerable: false,
|
|
4623
|
+
configurable: true
|
|
4624
|
+
});
|
|
4618
4625
|
return PaneldynamicAction;
|
|
4619
4626
|
}());
|
|
4620
4627
|
PaneldynamicAction.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PaneldynamicAction, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
@@ -4636,12 +4643,14 @@
|
|
|
4636
4643
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
4637
4644
|
}
|
|
4638
4645
|
PanelDynamicAddBtn.prototype.addPanelClick = function () {
|
|
4646
|
+
if (!this.isActionEnabled)
|
|
4647
|
+
return;
|
|
4639
4648
|
this.question.addPanelUI();
|
|
4640
4649
|
};
|
|
4641
4650
|
return PanelDynamicAddBtn;
|
|
4642
4651
|
}(PaneldynamicAction));
|
|
4643
4652
|
PanelDynamicAddBtn.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PanelDynamicAddBtn, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4644
|
-
PanelDynamicAddBtn.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PanelDynamicAddBtn, selector: "sv-ng-paneldynamic-add-btn", usesInheritance: true, ngImport: i0__namespace, template: "<button type=\"button\" [id]=\"question.addButtonId\" *ngIf=\"question.canAddPanel\" [class]=\"question.getAddButtonCss()\" (click)=\"addPanelClick()\">\n<span [class]=\"question.cssClasses.buttonAddText\"><sv-ng-string [model]=\"question.locAddPanelText\"></sv-ng-string></span>\n</button>", components: [{ type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4653
|
+
PanelDynamicAddBtn.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PanelDynamicAddBtn, selector: "sv-ng-paneldynamic-add-btn", usesInheritance: true, ngImport: i0__namespace, template: "<button type=\"button\" [id]=\"question.addButtonId\" *ngIf=\"question.canAddPanel\" [class]=\"question.getAddButtonCss()\" [disabled]=\"!isActionEnabled\" (click)=\"addPanelClick()\">\n<span [class]=\"question.cssClasses.buttonAddText\"><sv-ng-string [model]=\"question.locAddPanelText\"></sv-ng-string></span>\n</button>", components: [{ type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4645
4654
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PanelDynamicAddBtn, decorators: [{
|
|
4646
4655
|
type: i0.Component,
|
|
4647
4656
|
args: [{
|
|
@@ -4705,10 +4714,15 @@
|
|
|
4705
4714
|
enumerable: false,
|
|
4706
4715
|
configurable: true
|
|
4707
4716
|
});
|
|
4717
|
+
PaneldynamicRemoveButtonComponent.prototype.removePanelClick = function () {
|
|
4718
|
+
if (!this.isActionEnabled)
|
|
4719
|
+
return;
|
|
4720
|
+
this.question.removePanelUI(this.panel);
|
|
4721
|
+
};
|
|
4708
4722
|
return PaneldynamicRemoveButtonComponent;
|
|
4709
4723
|
}(PaneldynamicAction));
|
|
4710
4724
|
PaneldynamicRemoveButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PaneldynamicRemoveButtonComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4711
|
-
PaneldynamicRemoveButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PaneldynamicRemoveButtonComponent, selector: "sv-ng-paneldynamic-remove-btn", usesInheritance: true, ngImport: i0__namespace, template: "<button type=\"button\" [id]=\"question.getPanelRemoveButtonId(panel)\" (click)=\"
|
|
4725
|
+
PaneldynamicRemoveButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PaneldynamicRemoveButtonComponent, selector: "sv-ng-paneldynamic-remove-btn", usesInheritance: true, ngImport: i0__namespace, template: "<button type=\"button\" [id]=\"question.getPanelRemoveButtonId(panel)\" (click)=\"removePanelClick()\" [disabled]=\"!isActionEnabled\" [class]=\"question.getPanelRemoveButtonCss()\"> \n <span [class]=\"question.cssClasses.buttonRemoveText\"><sv-ng-string [model]=\"question.locRemovePanelText\"></sv-ng-string></span>\n <span [class]=\"question.cssClasses.iconRemove\"></span>\n</button>\n", components: [{ type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }] });
|
|
4712
4726
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PaneldynamicRemoveButtonComponent, decorators: [{
|
|
4713
4727
|
type: i0.Component,
|
|
4714
4728
|
args: [{
|