survey-js-ui 1.12.32 → 1.12.34
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 +285 -211
- package/fesm/survey-js-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-js-ui.js +14 -12
- package/survey-js-ui.js.map +1 -1
- package/survey-js-ui.min.js +4 -4
- package/survey-js-ui.min.js.LICENSE.txt +17 -1
- package/typings/survey-react-ui/entries/react-ui-model.d.ts +1 -0
- package/typings/survey-react-ui/src/buttongroup-dropdown.d.ts +7 -0
- package/typings/survey-react-ui/src/components/breadcrumbs/breadcrumbs.d.ts +15 -0
- package/typings/survey-react-ui/src/reactquestion.d.ts +3 -1
- package/typings/survey-react-ui/src/reactquestion_file.d.ts +0 -2
- package/typings/survey-react-ui/src/reactquestion_matrixdynamic.d.ts +6 -1
- package/typings/survey-react-ui/src/reactquestion_paneldynamic.d.ts +8 -6
- package/typings/survey-react-ui/src/reactquestion_rating.d.ts +1 -1
- package/typings/survey-react-ui/src/reactquestion_singleinputsummary.d.ts +12 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-js-ui",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.34",
|
|
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",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"typings": "./typings/src/entries/js-ui.d.ts",
|
|
24
24
|
"dependencies": {},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"survey-core": "1.12.
|
|
26
|
+
"survey-core": "1.12.34",
|
|
27
27
|
"@types/react-dom": "*",
|
|
28
28
|
"@types/react": "*"
|
|
29
29
|
}
|
package/survey-js-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.12.34
|
|
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
|
*/
|
|
@@ -110,7 +110,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
110
110
|
/***/ (function(module, exports, __webpack_require__) {
|
|
111
111
|
|
|
112
112
|
/*!
|
|
113
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
113
|
+
* surveyjs - Survey JavaScript library v1.12.34
|
|
114
114
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
115
115
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
116
116
|
*/
|
|
@@ -1043,7 +1043,7 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
1043
1043
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1044
1044
|
|
|
1045
1045
|
/*!
|
|
1046
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
1046
|
+
* surveyjs - Survey JavaScript library v1.12.34
|
|
1047
1047
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
1048
1048
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
1049
1049
|
*/
|
|
@@ -6082,7 +6082,7 @@ var reactquestion_ranking_SurveyQuestionRankingItem = /** @class */ (function (_
|
|
|
6082
6082
|
};
|
|
6083
6083
|
SurveyQuestionRankingItem.prototype.renderElement = function () {
|
|
6084
6084
|
var itemContent = ReactElementFactory.Instance.createElement(this.question.itemComponent, { item: this.item, cssClasses: this.cssClasses });
|
|
6085
|
-
return (_("div", { tabIndex: this.itemTabIndex, className: this.itemClass, onKeyDown: this.handleKeydown, onPointerDown: this.handlePointerDown, onPointerUp: this.handlePointerUp, "data-sv-drop-target-ranking-item": this.index },
|
|
6085
|
+
return (_("div", { id: this.question.getItemId(this.item), tabIndex: this.itemTabIndex, className: this.itemClass, onKeyDown: this.handleKeydown, onPointerDown: this.handlePointerDown, onPointerUp: this.handlePointerUp, "data-sv-drop-target-ranking-item": this.index },
|
|
6086
6086
|
_("div", { tabIndex: -1, style: { outline: "none" } },
|
|
6087
6087
|
_("div", { className: this.cssClasses.itemGhostNode }),
|
|
6088
6088
|
_("div", { className: this.cssClasses.itemContent },
|
|
@@ -6562,19 +6562,21 @@ var dropdown_base_SurveyQuestionDropdownBase = /** @class */ (function (_super)
|
|
|
6562
6562
|
return this.questionBase.renderedValue;
|
|
6563
6563
|
};
|
|
6564
6564
|
SurveyQuestionDropdownBase.prototype.renderReadOnlyElement = function () {
|
|
6565
|
-
|
|
6565
|
+
if (this.question.locReadOnlyText) {
|
|
6566
|
+
return this.renderLocString(this.question.locReadOnlyText);
|
|
6567
|
+
}
|
|
6568
|
+
else {
|
|
6569
|
+
return null;
|
|
6570
|
+
}
|
|
6566
6571
|
};
|
|
6567
6572
|
SurveyQuestionDropdownBase.prototype.renderSelect = function (cssClasses) {
|
|
6568
6573
|
var _this = this;
|
|
6569
6574
|
var _a, _b;
|
|
6570
6575
|
var selectElement = null;
|
|
6571
6576
|
if (this.question.isReadOnly) {
|
|
6572
|
-
var text = (this.question.selectedItemLocText) ? this.renderLocString(this.question.selectedItemLocText) : "";
|
|
6573
6577
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6574
6578
|
// @ts-ignore
|
|
6575
|
-
selectElement = _("div", { id: this.question.inputId, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, tabIndex: this.question.isDisabledAttr ? undefined : 0, className: this.question.getControlClass(), ref: function (div) { return (_this.setControl(div)); } },
|
|
6576
|
-
text,
|
|
6577
|
-
this.renderReadOnlyElement());
|
|
6579
|
+
selectElement = _("div", { id: this.question.inputId, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, tabIndex: this.question.isDisabledAttr ? undefined : 0, className: this.question.getControlClass(), ref: function (div) { return (_this.setControl(div)); } }, this.renderReadOnlyElement());
|
|
6578
6580
|
}
|
|
6579
6581
|
else {
|
|
6580
6582
|
selectElement = _(k, null,
|
|
@@ -7346,7 +7348,7 @@ var reactquestion_file_SurveyQuestionFile = /** @class */ (function (_super) {
|
|
|
7346
7348
|
var actionsContainer = this.question.actionsContainerVisible ? _(action_bar_SurveyActionBar, { model: this.question.actionsContainer }) : null;
|
|
7347
7349
|
var noFileChosen = this.question.isEmpty() ? (_("span", { className: this.question.cssClasses.noFileChosen }, this.question.noFileChosenCaption)) : null;
|
|
7348
7350
|
return (_("div", { className: this.question.getFileDecoratorCss() },
|
|
7349
|
-
_("span", { className: this.question.cssClasses.dragAreaPlaceholder }, this.renderLocString(this.question.locRenderedPlaceholder)),
|
|
7351
|
+
this.question.showDragAreaPlaceholder ? _("span", { className: this.question.cssClasses.dragAreaPlaceholder }, this.renderLocString(this.question.locRenderedPlaceholder)) : false,
|
|
7350
7352
|
_("div", { className: this.question.cssClasses.wrapper },
|
|
7351
7353
|
chooseButton,
|
|
7352
7354
|
actionsContainer,
|
|
@@ -7967,7 +7969,7 @@ var reactquestion_text_SurveyQuestionText = /** @class */ (function (_super) {
|
|
|
7967
7969
|
// disabled={this.isDisplayMode}
|
|
7968
7970
|
disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, className: inputClass, type: this.question.inputType,
|
|
7969
7971
|
//ref={this.controlRef}
|
|
7970
|
-
ref: function (input) { return (_this.setControl(input)); }, style: this.question.inputStyle, maxLength: this.question.getMaxLength(), min: this.question.renderedMin, max: this.question.renderedMax, step: this.question.renderedStep, size: this.question.inputSize, placeholder: placeholder, list: this.question.dataListId, autoComplete: this.question.autocomplete, onBlur: function (event) { _this.question.onBlur(event); }, onFocus: function (event) { _this.question.onFocus(event); }, onChange: this.question.onChange, onKeyUp: this.question.onKeyUp, onKeyDown: this.question.onKeyDown, onCompositionUpdate: function (event) { return _this.question.onCompositionUpdate(event.nativeEvent); }, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-errormessage": this.question.a11y_input_ariaErrormessage }),
|
|
7972
|
+
ref: function (input) { return (_this.setControl(input)); }, style: this.question.inputStyle, maxLength: this.question.getMaxLength(), min: this.question.renderedMin, max: this.question.renderedMax, step: this.question.renderedStep, size: this.question.inputSize, placeholder: placeholder, list: this.question.dataListId, autoComplete: this.question.autocomplete, onBlur: function (event) { _this.question.onBlur(event); }, onFocus: function (event) { _this.question.onFocus(event); }, onChange: this.question.onChange, onClick: this.question.readOnlyBlocker, onPointerDown: this.question.readOnlyBlocker, onKeyUp: this.question.onKeyUp, onKeyDown: this.question.onKeyDown, onCompositionUpdate: function (event) { return _this.question.onCompositionUpdate(event.nativeEvent); }, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-errormessage": this.question.a11y_input_ariaErrormessage }),
|
|
7971
7973
|
counter));
|
|
7972
7974
|
};
|
|
7973
7975
|
SurveyQuestionText.prototype.renderElement = function () {
|
|
@@ -11494,7 +11496,7 @@ var preact = compat_module_namespaceObject;
|
|
|
11494
11496
|
|
|
11495
11497
|
|
|
11496
11498
|
|
|
11497
|
-
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.
|
|
11499
|
+
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.34", "survey-js-ui");
|
|
11498
11500
|
|
|
11499
11501
|
|
|
11500
11502
|
/***/ }),
|