survey-react 1.12.55 → 1.12.56
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/defaultV2.css +1 -1
- package/defaultV2.min.css +1 -1
- package/modern.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +1 -1
- package/survey.react.js +8 -7
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/defaultV2.css
CHANGED
package/defaultV2.min.css
CHANGED
package/modern.css
CHANGED
package/modern.min.css
CHANGED
package/package.json
CHANGED
package/survey.css
CHANGED
package/survey.min.css
CHANGED
package/survey.react.d.ts
CHANGED
|
@@ -7344,7 +7344,7 @@ declare module "packages/survey-core/src/question_signaturepad" {
|
|
|
7344
7344
|
* [View Demo](https://surveyjs.io/form-library/examples/signature-pad-widget-javascript/ (linkStyle))
|
|
7345
7345
|
*/
|
|
7346
7346
|
export class QuestionSignaturePadModel extends QuestionFileModelBase {
|
|
7347
|
-
|
|
7347
|
+
hasDrawnStroke: boolean;
|
|
7348
7348
|
isReadyForUpload: boolean;
|
|
7349
7349
|
private getPenColorFromTheme;
|
|
7350
7350
|
private updateColors;
|
package/survey.react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.12.56
|
|
3
3
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -61868,6 +61868,7 @@ var question_file_QuestionFileModelBase = /** @class */ (function (_super) {
|
|
|
61868
61868
|
QuestionFileModelBase.prototype.uploadFiles = function (files) {
|
|
61869
61869
|
var _this = this;
|
|
61870
61870
|
if (this.survey) {
|
|
61871
|
+
this.errors = [];
|
|
61871
61872
|
this.stateChanged("loading");
|
|
61872
61873
|
this.survey.uploadFiles(this, this.name, files, function (arg1, arg2) {
|
|
61873
61874
|
if (Array.isArray(arg1)) {
|
|
@@ -66854,6 +66855,7 @@ var question_signaturepad_QuestionSignaturePadModel = /** @class */ (function (_
|
|
|
66854
66855
|
this.canvas.getContext("2d").clearRect(0, 0, this.canvas.width * this.scale, this.canvas.height * this.scale);
|
|
66855
66856
|
this.signaturePad.clear();
|
|
66856
66857
|
}
|
|
66858
|
+
this.hasDrawnStroke = false;
|
|
66857
66859
|
this.valueWasChangedFromLastUpload = false;
|
|
66858
66860
|
return;
|
|
66859
66861
|
}
|
|
@@ -66917,11 +66919,10 @@ var question_signaturepad_QuestionSignaturePadModel = /** @class */ (function (_
|
|
|
66917
66919
|
this.updateColors(signaturePad);
|
|
66918
66920
|
signaturePad.addEventListener("beginStroke", function () {
|
|
66919
66921
|
_this.scaleCanvas();
|
|
66920
|
-
_this.
|
|
66922
|
+
_this.hasDrawnStroke = true;
|
|
66921
66923
|
canvas.focus();
|
|
66922
66924
|
}, { once: false });
|
|
66923
66925
|
signaturePad.addEventListener("endStroke", function () {
|
|
66924
|
-
_this.isDrawingValue = false;
|
|
66925
66926
|
if (_this.storeDataAsText) {
|
|
66926
66927
|
_this.updateValue();
|
|
66927
66928
|
}
|
|
@@ -67121,7 +67122,7 @@ var question_signaturepad_QuestionSignaturePadModel = /** @class */ (function (_
|
|
|
67121
67122
|
configurable: true
|
|
67122
67123
|
});
|
|
67123
67124
|
QuestionSignaturePadModel.prototype.nothingIsDrawn = function () {
|
|
67124
|
-
var isDrawing = this.
|
|
67125
|
+
var isDrawing = this.hasDrawnStroke;
|
|
67125
67126
|
var isEmpty = this.isEmpty();
|
|
67126
67127
|
var isUploading = this.isUploading;
|
|
67127
67128
|
var valueWasChangedFromLastUpload = this.valueWasChangedFromLastUpload;
|
|
@@ -67171,7 +67172,7 @@ var question_signaturepad_QuestionSignaturePadModel = /** @class */ (function (_
|
|
|
67171
67172
|
};
|
|
67172
67173
|
question_signaturepad_decorate([
|
|
67173
67174
|
jsonobject_property({ defaultValue: false })
|
|
67174
|
-
], QuestionSignaturePadModel.prototype, "
|
|
67175
|
+
], QuestionSignaturePadModel.prototype, "hasDrawnStroke", void 0);
|
|
67175
67176
|
question_signaturepad_decorate([
|
|
67176
67177
|
jsonobject_property({ defaultValue: false })
|
|
67177
67178
|
], QuestionSignaturePadModel.prototype, "isReadyForUpload", void 0);
|
|
@@ -73359,9 +73360,9 @@ Serializer.addClass("currencymask", [
|
|
|
73359
73360
|
|
|
73360
73361
|
var Version;
|
|
73361
73362
|
var ReleaseDate;
|
|
73362
|
-
Version = "" + "1.12.
|
|
73363
|
+
Version = "" + "1.12.56";
|
|
73363
73364
|
settings.version = Version;
|
|
73364
|
-
ReleaseDate = "" + "2025-10-
|
|
73365
|
+
ReleaseDate = "" + "2025-10-21";
|
|
73365
73366
|
function checkLibraryVersion(ver, libraryName) {
|
|
73366
73367
|
if (Version != ver) {
|
|
73367
73368
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|