survey-js-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/fesm/survey-js-ui.mjs +21 -10
- package/fesm/survey-js-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-js-ui.js +29 -10
- package/survey-js-ui.js.map +1 -1
- package/survey-js-ui.min.js +2 -2
- package/typings/survey-react-ui/src/components/paneldynamic-actions/paneldynamic-add-btn.d.ts +1 -0
- package/typings/survey-react-ui/src/progress.d.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-js-ui",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.28",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A free MIT-licensed UI component that renders dynamic, interactive JSON-based forms and surveys in apps built with HTML, CSS, and JavaScript. You can use it to collect responses from users and send them to your own database.",
|
|
6
6
|
"homepage": "https://surveyjs.io/",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"survey-core": "2.5.
|
|
56
|
+
"survey-core": "2.5.28",
|
|
57
57
|
"@types/react-dom": "*",
|
|
58
58
|
"@types/react": "*"
|
|
59
59
|
}
|
package/survey-js-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v2.5.
|
|
2
|
+
* surveyjs - Survey JavaScript library v2.5.28
|
|
3
3
|
* Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -5393,7 +5393,7 @@
|
|
|
5393
5393
|
};
|
|
5394
5394
|
return (_$1("div", { role: "presentation", className: this.question.getRadioItemClass(cssClasses, value) },
|
|
5395
5395
|
_$1("label", { className: cssClasses.radioLabel },
|
|
5396
|
-
_$1("input", { type: "radio", name: this.question.
|
|
5396
|
+
_$1("input", { type: "radio", name: this.question.questionName, value: value, "aria-errormessage": this.question.ariaErrormessage, checked: value === this.question.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, className: cssClasses.itemRadioControl, onChange: handleOnChange }),
|
|
5397
5397
|
this.question.cssClasses.materialRadioDecorator ?
|
|
5398
5398
|
(_$1("span", { className: cssClasses.materialRadioDecorator }, this.question.itemSvgIcon ?
|
|
5399
5399
|
(_$1("svg", { className: cssClasses.itemRadioDecorator },
|
|
@@ -6218,23 +6218,33 @@
|
|
|
6218
6218
|
enumerable: false,
|
|
6219
6219
|
configurable: true
|
|
6220
6220
|
});
|
|
6221
|
+
Object.defineProperty(SurveyProgress.prototype, "model", {
|
|
6222
|
+
get: function () {
|
|
6223
|
+
return this.props.model;
|
|
6224
|
+
},
|
|
6225
|
+
enumerable: false,
|
|
6226
|
+
configurable: true
|
|
6227
|
+
});
|
|
6228
|
+
SurveyProgress.prototype.getStateElement = function () {
|
|
6229
|
+
return this.model;
|
|
6230
|
+
};
|
|
6221
6231
|
Object.defineProperty(SurveyProgress.prototype, "progress", {
|
|
6222
6232
|
get: function () {
|
|
6223
|
-
return this.
|
|
6233
|
+
return this.model.progressValue;
|
|
6224
6234
|
},
|
|
6225
6235
|
enumerable: false,
|
|
6226
6236
|
configurable: true
|
|
6227
6237
|
});
|
|
6228
6238
|
Object.defineProperty(SurveyProgress.prototype, "progressText", {
|
|
6229
6239
|
get: function () {
|
|
6230
|
-
return this.
|
|
6240
|
+
return this.model.progressText;
|
|
6231
6241
|
},
|
|
6232
6242
|
enumerable: false,
|
|
6233
6243
|
configurable: true
|
|
6234
6244
|
});
|
|
6235
6245
|
Object.defineProperty(SurveyProgress.prototype, "progressBarAriaLabel", {
|
|
6236
6246
|
get: function () {
|
|
6237
|
-
return this.
|
|
6247
|
+
return this.model.progressBarAriaLabel;
|
|
6238
6248
|
},
|
|
6239
6249
|
enumerable: false,
|
|
6240
6250
|
configurable: true
|
|
@@ -6243,10 +6253,10 @@
|
|
|
6243
6253
|
var progressStyle = {
|
|
6244
6254
|
width: this.progress + "%",
|
|
6245
6255
|
};
|
|
6246
|
-
return (_$1("div", { className: this.
|
|
6247
|
-
_$1("div", { style: progressStyle, className: this.css.progressBar, role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": this.progressBarAriaLabel },
|
|
6248
|
-
_$1("span", { className: surveyCore.SurveyProgressModel.getProgressTextInBarCss(this.css) }, this.progressText)),
|
|
6249
|
-
_$1("span", { className: surveyCore.SurveyProgressModel.getProgressTextUnderBarCss(this.css) }, this.progressText)));
|
|
6256
|
+
return (_$1("div", { className: this.model.getProgressCssClasses(this.props.container) },
|
|
6257
|
+
_$1("div", { style: progressStyle, className: this.model.css.progressBar, role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": this.progressBarAriaLabel },
|
|
6258
|
+
_$1("span", { className: surveyCore.SurveyProgressModel.getProgressTextInBarCss(this.model.css) }, this.progressText)),
|
|
6259
|
+
_$1("span", { className: surveyCore.SurveyProgressModel.getProgressTextUnderBarCss(this.model.css) }, this.progressText)));
|
|
6250
6260
|
};
|
|
6251
6261
|
return SurveyProgress;
|
|
6252
6262
|
}(SurveyNavigationBase));
|
|
@@ -7549,6 +7559,15 @@
|
|
|
7549
7559
|
};
|
|
7550
7560
|
return _this;
|
|
7551
7561
|
}
|
|
7562
|
+
Object.defineProperty(SurveyQuestionPanelDynamicAddButton.prototype, "isActionEnabled", {
|
|
7563
|
+
get: function () {
|
|
7564
|
+
if (this.props.item)
|
|
7565
|
+
return this.props.item.enabled !== false;
|
|
7566
|
+
return this.question.enableAddPanel !== false;
|
|
7567
|
+
},
|
|
7568
|
+
enumerable: false,
|
|
7569
|
+
configurable: true
|
|
7570
|
+
});
|
|
7552
7571
|
SurveyQuestionPanelDynamicAddButton.prototype.renderElement = function () {
|
|
7553
7572
|
if (!this.question.canAddPanel)
|
|
7554
7573
|
return null;
|
|
@@ -7969,7 +7988,7 @@
|
|
|
7969
7988
|
}
|
|
7970
7989
|
};
|
|
7971
7990
|
var preact = React;
|
|
7972
|
-
surveyCore.checkLibraryVersion("".concat("2.5.
|
|
7991
|
+
surveyCore.checkLibraryVersion("".concat("2.5.28"), "survey-js-ui");
|
|
7973
7992
|
|
|
7974
7993
|
Object.defineProperty(exports, 'Model', {
|
|
7975
7994
|
enumerable: true,
|