survey-react-ui 1.12.26 → 1.12.27
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-react-ui.js +5972 -0
- package/fesm/survey-react-ui.js.map +1 -0
- package/index.html +1 -1
- package/package.json +2 -2
- package/survey-react-ui.js +35 -25
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +4 -4
- package/survey-react-ui.min.js.LICENSE.txt +1 -489
- package/typings/packages/survey-react-ui/src/reactquestion_element.d.ts +3 -0
- package/typings/src/components/action-bar/action-bar-item-dropdown.d.ts +1 -1
- package/typings/src/components/action-bar/action-bar-item.d.ts +1 -2
- package/typings/src/components/action-bar/action-bar-separator.d.ts +1 -1
- package/typings/src/components/action-bar/action-bar.d.ts +1 -1
- package/typings/src/components/brand-info.d.ts +1 -1
- package/typings/src/components/character-counter.d.ts +1 -1
- package/typings/src/components/components-container.d.ts +1 -1
- package/typings/src/components/file/file-choose-button.d.ts +1 -1
- package/typings/src/components/file/file-item.d.ts +1 -1
- package/typings/src/components/file/file-page.d.ts +1 -1
- package/typings/src/components/file/file-preview.d.ts +1 -1
- package/typings/src/components/header.d.ts +3 -1
- package/typings/src/components/list/list-item-content.d.ts +1 -1
- package/typings/src/components/list/list-item-group.d.ts +1 -1
- package/typings/src/components/list/list-item.d.ts +1 -1
- package/typings/src/components/list/list.d.ts +1 -1
- package/typings/src/components/matrix/row.d.ts +1 -1
- package/typings/src/components/matrix-actions/detail-button/detail-button.d.ts +1 -1
- package/typings/src/components/matrix-actions/drag-drop-icon/drag-drop-icon.d.ts +1 -1
- package/typings/src/components/matrix-actions/remove-button/remove-button.d.ts +1 -1
- package/typings/src/components/notifier.d.ts +1 -1
- package/typings/src/components/paneldynamic-actions/paneldynamic-add-btn.d.ts +1 -1
- package/typings/src/components/paneldynamic-actions/paneldynamic-next-btn.d.ts +1 -1
- package/typings/src/components/paneldynamic-actions/paneldynamic-prev-btn.d.ts +1 -1
- package/typings/src/components/paneldynamic-actions/paneldynamic-progress-text.d.ts +1 -1
- package/typings/src/components/paneldynamic-actions/paneldynamic-remove-btn.d.ts +1 -1
- package/typings/src/components/popup/popup-modal.d.ts +1 -1
- package/typings/src/components/popup/popup.d.ts +1 -1
- package/typings/src/components/question-error.d.ts +1 -1
- package/typings/src/components/rating/rating-dropdown-item.d.ts +1 -1
- package/typings/src/components/rating/rating-item-smiley.d.ts +1 -1
- package/typings/src/components/rating/rating-item-star.d.ts +1 -1
- package/typings/src/components/rating/rating-item.d.ts +1 -1
- package/typings/src/components/skeleton.d.ts +1 -1
- package/typings/src/components/survey-actions/survey-nav-button.d.ts +1 -1
- package/typings/src/components/survey-header/logo-image.d.ts +1 -1
- package/typings/src/components/survey-header/survey-header.d.ts +1 -1
- package/typings/src/components/svg-icon/svg-icon.d.ts +1 -1
- package/typings/src/components/text-area.d.ts +1 -1
- package/typings/src/components/title/title-actions.d.ts +1 -1
- package/typings/src/components/title/title-content.d.ts +1 -1
- package/typings/src/components/title/title-element.d.ts +1 -1
- package/typings/src/element-factory.d.ts +0 -1
- package/typings/src/element-header.d.ts +6 -3
- package/typings/src/reactquestion_buttongroup.d.ts +1 -1
- package/typings/src/reactquestion_element.d.ts +3 -0
- package/typings/src/reactquestion_factory.d.ts +0 -1
- package/typings/src/reactsurveymodel.d.ts +0 -1
- package/typings/src/string-editor.d.ts +1 -1
- package/typings/src/string-viewer.d.ts +1 -1
- package/typings/src/svgbundle.d.ts +1 -1
- package/survey-react-ui.d.ts +0 -2
- package/typings/react/boolean-checkbox.d.ts +0 -6
- package/typings/react/boolean-radio.d.ts +0 -8
- package/typings/react/boolean.d.ts +0 -17
- package/typings/react/components/action-bar/action-bar-item-dropdown.d.ts +0 -8
- package/typings/react/components/action-bar/action-bar-item.d.ts +0 -20
- package/typings/react/components/action-bar/action-bar-separator.d.ts +0 -5
- package/typings/react/components/action-bar/action-bar.d.ts +0 -21
- package/typings/react/components/brand-info.d.ts +0 -4
- package/typings/react/components/character-counter.d.ts +0 -11
- package/typings/react/components/components-container.d.ts +0 -4
- package/typings/react/components/cover.d.ts +0 -17
- package/typings/react/components/file/file-choose-button.d.ts +0 -8
- package/typings/react/components/file/file-preview.d.ts +0 -11
- package/typings/react/components/file-actions/file-choose-button.d.ts +0 -8
- package/typings/react/components/header.d.ts +0 -22
- package/typings/react/components/list/list-item-content.d.ts +0 -14
- package/typings/react/components/list/list-item-group.d.ts +0 -14
- package/typings/react/components/list/list-item.d.ts +0 -16
- package/typings/react/components/list/list.d.ts +0 -23
- package/typings/react/components/loading-indicator.d.ts +0 -4
- package/typings/react/components/matrix/row.d.ts +0 -20
- package/typings/react/components/matrix-actions/detail-button/detail-button.d.ts +0 -12
- package/typings/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.d.ts +0 -6
- package/typings/react/components/matrix-actions/remove-button/remove-button.d.ts +0 -9
- package/typings/react/components/notifier.d.ts +0 -11
- package/typings/react/components/paneldynamic-actions/paneldynamic-add-btn.d.ts +0 -12
- package/typings/react/components/paneldynamic-actions/paneldynamic-next-btn.d.ts +0 -6
- package/typings/react/components/paneldynamic-actions/paneldynamic-prev-btn.d.ts +0 -6
- package/typings/react/components/paneldynamic-actions/paneldynamic-progress-text.d.ts +0 -5
- package/typings/react/components/paneldynamic-actions/paneldynamic-remove-btn.d.ts +0 -6
- package/typings/react/components/popup/popup.d.ts +0 -42
- package/typings/react/components/question-error.d.ts +0 -10
- package/typings/react/components/rating/rating-dropdown-item.d.ts +0 -12
- package/typings/react/components/rating/rating-item-smiley.d.ts +0 -5
- package/typings/react/components/rating/rating-item-star.d.ts +0 -5
- package/typings/react/components/rating/rating-item.d.ts +0 -22
- package/typings/react/components/skeleton.d.ts +0 -4
- package/typings/react/components/survey-actions/survey-nav-button.d.ts +0 -8
- package/typings/react/components/survey-header/logo-image.d.ts +0 -11
- package/typings/react/components/survey-header/survey-header.d.ts +0 -17
- package/typings/react/components/svg-icon/svg-icon.d.ts +0 -9
- package/typings/react/components/title/title-actions.d.ts +0 -7
- package/typings/react/components/title/title-content.d.ts +0 -10
- package/typings/react/components/title/title-element.d.ts +0 -6
- package/typings/react/custom-widget.d.ts +0 -12
- package/typings/react/dropdown-base.d.ts +0 -25
- package/typings/react/dropdown-item.d.ts +0 -13
- package/typings/react/dropdown-select.d.ts +0 -6
- package/typings/react/element-factory.d.ts +0 -9
- package/typings/react/element-header.d.ts +0 -5
- package/typings/react/element.d.ts +0 -19
- package/typings/react/flow-panel.d.ts +0 -22
- package/typings/react/image.d.ts +0 -10
- package/typings/react/imagepicker.d.ts +0 -25
- package/typings/react/page.d.ts +0 -11
- package/typings/react/panel-base.d.ts +0 -25
- package/typings/react/panel.d.ts +0 -16
- package/typings/react/progress.d.ts +0 -9
- package/typings/react/progressButtons.d.ts +0 -19
- package/typings/react/progressToc.d.ts +0 -5
- package/typings/react/rating-dropdown.d.ts +0 -8
- package/typings/react/react-popup-survey.d.ts +0 -24
- package/typings/react/reactSurvey.d.ts +0 -41
- package/typings/react/reactSurveyNavigationBase.d.ts +0 -10
- package/typings/react/reactSurveyProgress.d.ts +0 -9
- package/typings/react/reactSurveyProgressButtons.d.ts +0 -19
- package/typings/react/reactSurveyProgressToc.d.ts +0 -5
- package/typings/react/reactquestion.d.ts +0 -81
- package/typings/react/reactquestion_buttongroup.d.ts +0 -23
- package/typings/react/reactquestion_checkbox.d.ts +0 -33
- package/typings/react/reactquestion_comment.d.ts +0 -31
- package/typings/react/reactquestion_custom.d.ts +0 -13
- package/typings/react/reactquestion_dropdown.d.ts +0 -7
- package/typings/react/reactquestion_element.d.ts +0 -65
- package/typings/react/reactquestion_empty.d.ts +0 -8
- package/typings/react/reactquestion_expression.d.ts +0 -8
- package/typings/react/reactquestion_factory.d.ts +0 -8
- package/typings/react/reactquestion_file.d.ts +0 -14
- package/typings/react/reactquestion_html.d.ts +0 -13
- package/typings/react/reactquestion_matrix.d.ts +0 -33
- package/typings/react/reactquestion_matrixdropdown.d.ts +0 -4
- package/typings/react/reactquestion_matrixdropdownbase.d.ts +0 -29
- package/typings/react/reactquestion_matrixdynamic.d.ts +0 -20
- package/typings/react/reactquestion_multipletext.d.ts +0 -22
- package/typings/react/reactquestion_paneldynamic.d.ts +0 -28
- package/typings/react/reactquestion_radiogroup.d.ts +0 -32
- package/typings/react/reactquestion_ranking.d.ts +0 -30
- package/typings/react/reactquestion_rating.d.ts +0 -10
- package/typings/react/reactquestion_tagbox.d.ts +0 -10
- package/typings/react/reactquestion_text.d.ts +0 -11
- package/typings/react/reactsurveymodel.d.ts +0 -9
- package/typings/react/reacttimerpanel.d.ts +0 -11
- package/typings/react/row.d.ts +0 -21
- package/typings/react/signaturepad.d.ts +0 -11
- package/typings/react/string-editor.d.ts +0 -11
- package/typings/react/string-viewer.d.ts +0 -15
- package/typings/react/svgbundle.d.ts +0 -7
- package/typings/react/tagbox-filter.d.ts +0 -23
- package/typings/react/tagbox-item.d.ts +0 -10
package/index.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<script src="https://unpkg.com/react-dom@16.5.0/umd/react-dom.development.js"></script>
|
|
11
11
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.js"></script>
|
|
12
12
|
<script src="./node_modules/survey-core/survey.core.js"></script>
|
|
13
|
-
<link rel="stylesheet" href="./node_modules/survey-core/
|
|
13
|
+
<link rel="stylesheet" href="./node_modules/survey-core/survey-core.css" />
|
|
14
14
|
</head>
|
|
15
15
|
|
|
16
16
|
<body spellcheck="false">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-ui",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.27",
|
|
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": "./typings/src/entries/react-ui.d.ts",
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"survey-core": "1.12.
|
|
24
|
+
"survey-core": "1.12.27",
|
|
25
25
|
"react": "^16.5.0 || ^17.0.1 || ^18.2.0 || ^19.0.0",
|
|
26
26
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.2.0 || ^19.0.0"
|
|
27
27
|
}
|
package/survey-react-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.12.27
|
|
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.27
|
|
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.27
|
|
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
|
*/
|
|
@@ -2215,6 +2215,21 @@ var reactquestion_element_SurveyElementBase = /** @class */ (function (_super) {
|
|
|
2215
2215
|
var _this = _super.call(this, props) || this;
|
|
2216
2216
|
_this._allowComponentUpdate = true;
|
|
2217
2217
|
_this.prevStateElements = [];
|
|
2218
|
+
_this.propertyValueChangedHandler = function (hash, key, val) {
|
|
2219
|
+
if (hash[key] !== val) {
|
|
2220
|
+
hash[key] = val;
|
|
2221
|
+
if (!_this.canUsePropInState(key))
|
|
2222
|
+
return;
|
|
2223
|
+
if (_this.isRendering)
|
|
2224
|
+
return;
|
|
2225
|
+
_this.changedStatePropNameValue = key;
|
|
2226
|
+
_this.setState(function (state) {
|
|
2227
|
+
var newState = {};
|
|
2228
|
+
newState[key] = val;
|
|
2229
|
+
return newState;
|
|
2230
|
+
});
|
|
2231
|
+
}
|
|
2232
|
+
};
|
|
2218
2233
|
return _this;
|
|
2219
2234
|
}
|
|
2220
2235
|
SurveyElementBase.renderLocString = function (locStr, style, key) {
|
|
@@ -2323,6 +2338,9 @@ var reactquestion_element_SurveyElementBase = /** @class */ (function (_super) {
|
|
|
2323
2338
|
};
|
|
2324
2339
|
SurveyElementBase.prototype.unMakeBaseElementsReact = function () {
|
|
2325
2340
|
var els = this.getStateElements();
|
|
2341
|
+
this.unMakeBaseElementsReactive(els);
|
|
2342
|
+
};
|
|
2343
|
+
SurveyElementBase.prototype.unMakeBaseElementsReactive = function (els) {
|
|
2326
2344
|
for (var i = 0; i < els.length; i++) {
|
|
2327
2345
|
this.unMakeBaseElementReact(els[i]);
|
|
2328
2346
|
}
|
|
@@ -2354,6 +2372,9 @@ var reactquestion_element_SurveyElementBase = /** @class */ (function (_super) {
|
|
|
2354
2372
|
SurveyElementBase.prototype.canMakeReact = function (stateElement) {
|
|
2355
2373
|
return !!stateElement && !!stateElement.iteratePropertiesHash;
|
|
2356
2374
|
};
|
|
2375
|
+
SurveyElementBase.prototype.isCurrentStateElement = function (stateElement) {
|
|
2376
|
+
return !!stateElement && !!stateElement.setPropertyValueCoreHandler && stateElement.setPropertyValueCoreHandler === this.propertyValueChangedHandler;
|
|
2377
|
+
};
|
|
2357
2378
|
SurveyElementBase.prototype.makeBaseElementReact = function (stateElement) {
|
|
2358
2379
|
var _this = this;
|
|
2359
2380
|
if (!this.canMakeReact(stateElement))
|
|
@@ -2376,21 +2397,7 @@ var reactquestion_element_SurveyElementBase = /** @class */ (function (_super) {
|
|
|
2376
2397
|
};
|
|
2377
2398
|
}
|
|
2378
2399
|
});
|
|
2379
|
-
stateElement.setPropertyValueCoreHandler =
|
|
2380
|
-
if (hash[key] !== val) {
|
|
2381
|
-
hash[key] = val;
|
|
2382
|
-
if (!_this.canUsePropInState(key))
|
|
2383
|
-
return;
|
|
2384
|
-
if (_this.isRendering)
|
|
2385
|
-
return;
|
|
2386
|
-
_this.changedStatePropNameValue = key;
|
|
2387
|
-
_this.setState(function (state) {
|
|
2388
|
-
var newState = {};
|
|
2389
|
-
newState[key] = val;
|
|
2390
|
-
return newState;
|
|
2391
|
-
});
|
|
2392
|
-
}
|
|
2393
|
-
};
|
|
2400
|
+
stateElement.setPropertyValueCoreHandler = this.propertyValueChangedHandler;
|
|
2394
2401
|
};
|
|
2395
2402
|
SurveyElementBase.prototype.canUsePropInState = function (key) {
|
|
2396
2403
|
return true;
|
|
@@ -2398,6 +2405,11 @@ var reactquestion_element_SurveyElementBase = /** @class */ (function (_super) {
|
|
|
2398
2405
|
SurveyElementBase.prototype.unMakeBaseElementReact = function (stateElement) {
|
|
2399
2406
|
if (!this.canMakeReact(stateElement))
|
|
2400
2407
|
return;
|
|
2408
|
+
if (!this.isCurrentStateElement(stateElement)) {
|
|
2409
|
+
// eslint-disable-next-line no-console
|
|
2410
|
+
// console.warn("Looks like the component is bound to another survey element. It is not supported and can lead to issues.");
|
|
2411
|
+
// return;
|
|
2412
|
+
}
|
|
2401
2413
|
stateElement.setPropertyValueCoreHandler = undefined;
|
|
2402
2414
|
stateElement.iteratePropertiesHash(function (hash, key) {
|
|
2403
2415
|
var val = hash[key];
|
|
@@ -2801,8 +2813,10 @@ var row_SurveyRow = /** @class */ (function (_super) {
|
|
|
2801
2813
|
};
|
|
2802
2814
|
SurveyRow.prototype.componentWillUnmount = function () {
|
|
2803
2815
|
_super.prototype.componentWillUnmount.call(this);
|
|
2804
|
-
this.
|
|
2805
|
-
|
|
2816
|
+
if (this.isCurrentStateElement(this.getStateElement())) {
|
|
2817
|
+
this.row.setRootElement(undefined);
|
|
2818
|
+
this.stopLazyRendering();
|
|
2819
|
+
}
|
|
2806
2820
|
};
|
|
2807
2821
|
SurveyRow.prototype.createElement = function (element, elementIndex) {
|
|
2808
2822
|
var index = elementIndex ? "-" + elementIndex : 0;
|
|
@@ -4415,10 +4429,6 @@ var page_SurveyPage = /** @class */ (function (_super) {
|
|
|
4415
4429
|
enumerable: false,
|
|
4416
4430
|
configurable: true
|
|
4417
4431
|
});
|
|
4418
|
-
// shouldComponentUpdate(nextProps: any, nextState: any): boolean {
|
|
4419
|
-
// if(!super.shouldComponentUpdate(nextProps, nextState)) return false;
|
|
4420
|
-
// return true;
|
|
4421
|
-
// }
|
|
4422
4432
|
SurveyPage.prototype.renderElement = function () {
|
|
4423
4433
|
var title = this.renderTitle();
|
|
4424
4434
|
var description = this.renderDescription();
|
|
@@ -11311,7 +11321,7 @@ ReactElementFactory.Instance.registerElement(external_root_Survey_commonjs2_surv
|
|
|
11311
11321
|
|
|
11312
11322
|
|
|
11313
11323
|
|
|
11314
|
-
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.
|
|
11324
|
+
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.27", "survey-react-ui");
|
|
11315
11325
|
|
|
11316
11326
|
|
|
11317
11327
|
/***/ }),
|