survey-react-ui 1.9.102 → 1.9.103
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/package.json +2 -2
- package/survey-react-ui.js +22 -17
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-ui",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.103",
|
|
4
4
|
"description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"typings": "survey-react-ui.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"survey-core": "1.9.
|
|
24
|
+
"survey-core": "1.9.103",
|
|
25
25
|
"react": "^16.5.0 || ^17.0.1 || ^18.1.0",
|
|
26
26
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0"
|
|
27
27
|
}
|
package/survey-react-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.9.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.103
|
|
3
3
|
* Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -690,7 +690,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
690
690
|
|
|
691
691
|
|
|
692
692
|
|
|
693
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.
|
|
693
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.103", "survey-react-ui");
|
|
694
694
|
|
|
695
695
|
|
|
696
696
|
/***/ }),
|
|
@@ -3635,7 +3635,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
|
3635
3635
|
if (!!this.inputElement) {
|
|
3636
3636
|
var control = this.inputElement;
|
|
3637
3637
|
var newValue = this.question.dropdownListModel.inputStringRendered;
|
|
3638
|
-
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isTwoValueEquals(newValue, control.value, false, true)) {
|
|
3638
|
+
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isTwoValueEquals(newValue, control.value, false, true, false)) {
|
|
3639
3639
|
control.value = this.question.dropdownListModel.inputStringRendered;
|
|
3640
3640
|
}
|
|
3641
3641
|
}
|
|
@@ -6989,7 +6989,7 @@ var SurveyQuestionUncontrolledElement = /** @class */ (function (_super) {
|
|
|
6989
6989
|
function SurveyQuestionUncontrolledElement(props) {
|
|
6990
6990
|
var _this = _super.call(this, props) || this;
|
|
6991
6991
|
_this.updateValueOnEvent = function (event) {
|
|
6992
|
-
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isTwoValueEquals(_this.questionBase.value, event.target.value, false, true)) {
|
|
6992
|
+
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isTwoValueEquals(_this.questionBase.value, event.target.value, false, true, false)) {
|
|
6993
6993
|
_this.setValueCore(event.target.value);
|
|
6994
6994
|
}
|
|
6995
6995
|
};
|
|
@@ -7013,7 +7013,7 @@ var SurveyQuestionUncontrolledElement = /** @class */ (function (_super) {
|
|
|
7013
7013
|
if (!!this.control) {
|
|
7014
7014
|
var control = this.control;
|
|
7015
7015
|
var newValue = this.getValueCore();
|
|
7016
|
-
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isTwoValueEquals(newValue, control.value, false, true)) {
|
|
7016
|
+
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isTwoValueEquals(newValue, control.value, false, true, false)) {
|
|
7017
7017
|
control.value = this.getValue(newValue);
|
|
7018
7018
|
}
|
|
7019
7019
|
}
|
|
@@ -7262,9 +7262,9 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
|
|
|
7262
7262
|
var questionCss = this.question.cssClasses;
|
|
7263
7263
|
var noFileChosen = null;
|
|
7264
7264
|
var chooseFile = null;
|
|
7265
|
-
chooseFile = this.question.isReadOnly ? null : Object(_reactSurvey__WEBPACK_IMPORTED_MODULE_5__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { role: "button", tabIndex: 0, className: this.question.getChooseFileCss(), htmlFor: this.question.inputId, "aria-label": this.question.
|
|
7266
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, this.question.
|
|
7267
|
-
(!!this.question.cssClasses.chooseFileIconId) ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { title: this.question.
|
|
7265
|
+
chooseFile = this.question.isReadOnly ? null : Object(_reactSurvey__WEBPACK_IMPORTED_MODULE_5__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { role: "button", tabIndex: 0, className: this.question.getChooseFileCss(), htmlFor: this.question.inputId, "aria-label": this.question.chooseButtonText },
|
|
7266
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, this.question.chooseButtonText),
|
|
7267
|
+
(!!this.question.cssClasses.chooseFileIconId) ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { title: this.question.chooseButtonText, iconName: this.question.cssClasses.chooseFileIconId, size: "auto" }) : null));
|
|
7268
7268
|
if (this.question.isEmpty()) {
|
|
7269
7269
|
noFileChosen = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.question.cssClasses.noFileChosen }, this.question.noFileChosenCaption));
|
|
7270
7270
|
}
|
|
@@ -9921,7 +9921,7 @@ var TagboxFilterString = /** @class */ (function (_super) {
|
|
|
9921
9921
|
if (!!this.inputElement) {
|
|
9922
9922
|
var control = this.inputElement;
|
|
9923
9923
|
var newValue = this.model.inputStringRendered;
|
|
9924
|
-
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isTwoValueEquals(newValue, control.value, false, true)) {
|
|
9924
|
+
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isTwoValueEquals(newValue, control.value, false, true, false)) {
|
|
9925
9925
|
control.value = this.model.inputStringRendered;
|
|
9926
9926
|
}
|
|
9927
9927
|
}
|
|
@@ -10485,12 +10485,6 @@ var settings = {
|
|
|
10485
10485
|
*
|
|
10486
10486
|
* - `caseSensitive`: `Boolean`\
|
|
10487
10487
|
* Specifies whether to differentiate between capital and lower-case letters. Default value: `false`.
|
|
10488
|
-
*
|
|
10489
|
-
* - `normalizedTextCallback`: `(str: string, reason: string) => string`
|
|
10490
|
-
* Use the following function { str.normalize("NFD").replace(/[\u0300-\u036f]/g, ""); }
|
|
10491
|
-
* If you want to 'Brouillé' to be equal to 'Brouille'.
|
|
10492
|
-
* Use the following function { return reason === "filter" ? str.normalize("NFD").replace(/[\u0300-\u036f]/g, ""): ""; }
|
|
10493
|
-
* If you want to use this functionality during filtering only, for example in list.
|
|
10494
10488
|
*/
|
|
10495
10489
|
comparator: {
|
|
10496
10490
|
trimStrings: true,
|
|
@@ -10624,11 +10618,22 @@ var settings = {
|
|
|
10624
10618
|
* - `"icon"` - Users can only use the choice item icon as a drag handle.
|
|
10625
10619
|
*/
|
|
10626
10620
|
rankingDragHandleArea: "entireItem",
|
|
10621
|
+
environment: defaultEnvironment,
|
|
10627
10622
|
/**
|
|
10628
|
-
*
|
|
10623
|
+
* Allows you to hide the maximum length indicator in text input questions.
|
|
10624
|
+
*
|
|
10625
|
+
* If you specify a question's [`maxLength`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#maxLength) property or a survey's [`maxTextLength`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#maxTextLength) property, text input questions indicate the number of entered characters and the character limit. Assign `false` to the `settings.showMaxLengthIndicator` property if you want to hide this indicator.
|
|
10626
|
+
*
|
|
10627
|
+
* Default value: `true`
|
|
10629
10628
|
*/
|
|
10630
|
-
environment: defaultEnvironment,
|
|
10631
10629
|
showMaxLengthIndicator: true,
|
|
10630
|
+
/**
|
|
10631
|
+
* An object that specifies heading levels (`<h1>`, `<h2>`, etc.) to use when rendering survey, page, panel, and question titles.
|
|
10632
|
+
*
|
|
10633
|
+
* Default value: `{ survey: "h3", page: "h4", panel: "h4", question: "h5" }`
|
|
10634
|
+
*
|
|
10635
|
+
* If you want to modify heading levels for individual titles, handle `SurveyModel`'s [`onGetTitleTagName`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetTitleTagName) event.
|
|
10636
|
+
*/
|
|
10632
10637
|
titleTags: {
|
|
10633
10638
|
survey: "h3",
|
|
10634
10639
|
page: "h4",
|