survey-react-ui 1.12.6 → 1.12.8
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 +114 -45
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +2 -2
- package/typings/packages/survey-react-ui/entries/react-ui-model.d.ts +1 -0
- package/typings/packages/survey-react-ui/src/components/popup/popup-modal.d.ts +23 -0
- package/typings/packages/survey-react-ui/src/components/popup/popup.d.ts +1 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-ui",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.8",
|
|
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.8",
|
|
25
25
|
"react": "^16.5.0 || ^17.0.1 || ^18.2.0",
|
|
26
26
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.2.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.8
|
|
3
3
|
* Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -103,9 +103,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
103
103
|
|
|
104
104
|
/***/ "./src/entries/react-ui.ts":
|
|
105
105
|
/*!**********************************************!*\
|
|
106
|
-
!*** ./src/entries/react-ui.ts +
|
|
106
|
+
!*** ./src/entries/react-ui.ts + 99 modules ***!
|
|
107
107
|
\**********************************************/
|
|
108
|
-
/*! exports provided: Survey, attachKey2click, ReactSurveyElementsWrapper, SurveyNavigationBase, SurveyTimerPanel, SurveyPage, SurveyRow, SurveyPanel, SurveyFlowPanel, SurveyQuestion, SurveyElementErrors, SurveyQuestionAndErrorsCell, ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, SurveyQuestionCommentItem, SurveyQuestionComment, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionRanking, SurveyQuestionRankingItem, SurveyQuestionRankingItemContent, RatingItem, RatingItemStar, RatingItemSmiley, RatingDropdownItem, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionMatrixCell, SurveyQuestionHtml, SurveyQuestionFile, SurveyFileChooseButton, SurveyFilePreview, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, ListItemContent, ListItemGroup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, QuestionErrorComponent, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, HeaderMobile, HeaderCell, Header, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent, SvgBundleComponent, SurveyModel, SurveyWindowModel, Model, settings, surveyLocalization, surveyStrings */
|
|
108
|
+
/*! exports provided: Survey, attachKey2click, ReactSurveyElementsWrapper, SurveyNavigationBase, SurveyTimerPanel, SurveyPage, SurveyRow, SurveyPanel, SurveyFlowPanel, SurveyQuestion, SurveyElementErrors, SurveyQuestionAndErrorsCell, ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, SurveyQuestionCommentItem, SurveyQuestionComment, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionRanking, SurveyQuestionRankingItem, SurveyQuestionRankingItemContent, RatingItem, RatingItemStar, RatingItemSmiley, RatingDropdownItem, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionMatrixCell, SurveyQuestionHtml, SurveyQuestionFile, SurveyFileChooseButton, SurveyFilePreview, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, ListItemContent, ListItemGroup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, QuestionErrorComponent, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, HeaderMobile, HeaderCell, Header, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent, SvgBundleComponent, PopupModal, SurveyModel, SurveyWindowModel, Model, settings, surveyLocalization, surveyStrings */
|
|
109
109
|
/*! ModuleConcatenation bailout: Cannot concat with external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"} (<- Module is not an ECMAScript module) */
|
|
110
110
|
/*! ModuleConcatenation bailout: Cannot concat with external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"} (<- Module is not an ECMAScript module) */
|
|
111
111
|
/*! ModuleConcatenation bailout: Cannot concat with external {"root":"Survey","commonjs2":"survey-core","commonjs":"survey-core","amd":"survey-core"} (<- Module is not an ECMAScript module) */
|
|
@@ -218,6 +218,7 @@ __webpack_require__.d(__webpack_exports__, "SurveyLocStringViewer", function() {
|
|
|
218
218
|
__webpack_require__.d(__webpack_exports__, "SurveyLocStringEditor", function() { return /* reexport */ string_editor_SurveyLocStringEditor; });
|
|
219
219
|
__webpack_require__.d(__webpack_exports__, "LoadingIndicatorComponent", function() { return /* reexport */ loading_indicator_LoadingIndicatorComponent; });
|
|
220
220
|
__webpack_require__.d(__webpack_exports__, "SvgBundleComponent", function() { return /* reexport */ svgbundle_SvgBundleComponent; });
|
|
221
|
+
__webpack_require__.d(__webpack_exports__, "PopupModal", function() { return /* reexport */ popup_modal_PopupModal; });
|
|
221
222
|
__webpack_require__.d(__webpack_exports__, "SurveyModel", function() { return /* reexport */ external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["SurveyModel"]; });
|
|
222
223
|
__webpack_require__.d(__webpack_exports__, "SurveyWindowModel", function() { return /* reexport */ external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["SurveyWindowModel"]; });
|
|
223
224
|
__webpack_require__.d(__webpack_exports__, "Model", function() { return /* reexport */ external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["SurveyModel"]; });
|
|
@@ -1257,10 +1258,6 @@ ReactElementFactory.Instance.registerElement("sv-action-bar-item", function (pro
|
|
|
1257
1258
|
return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(action_bar_item_SurveyActionBarItem, props);
|
|
1258
1259
|
});
|
|
1259
1260
|
|
|
1260
|
-
// EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"}
|
|
1261
|
-
var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__("react-dom");
|
|
1262
|
-
var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default = /*#__PURE__*/__webpack_require__.n(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_);
|
|
1263
|
-
|
|
1264
1261
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/popup/popup.tsx
|
|
1265
1262
|
var popup_extends = (undefined && undefined.__extends) || (function () {
|
|
1266
1263
|
var extendStatics = function (d, b) {
|
|
@@ -1282,7 +1279,6 @@ var popup_extends = (undefined && undefined.__extends) || (function () {
|
|
|
1282
1279
|
|
|
1283
1280
|
|
|
1284
1281
|
|
|
1285
|
-
|
|
1286
1282
|
var popup_Popup = /** @class */ (function (_super) {
|
|
1287
1283
|
popup_extends(Popup, _super);
|
|
1288
1284
|
function Popup(props) {
|
|
@@ -1449,41 +1445,6 @@ var popup_PopupDropdownContainer = /** @class */ (function (_super) {
|
|
|
1449
1445
|
return PopupDropdownContainer;
|
|
1450
1446
|
}(popup_PopupContainer));
|
|
1451
1447
|
|
|
1452
|
-
// replace to showDialog then delete
|
|
1453
|
-
function showModal(componentName, data, onApply, onCancel, cssClass, title, displayMode) {
|
|
1454
|
-
if (displayMode === void 0) { displayMode = "popup"; }
|
|
1455
|
-
var options = Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["createDialogOptions"])(componentName, data, onApply, onCancel, undefined, undefined, cssClass, title, displayMode);
|
|
1456
|
-
return showDialog(options);
|
|
1457
|
-
}
|
|
1458
|
-
function showDialog(dialogOptions, rootElement) {
|
|
1459
|
-
var popupViewModel = Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["createPopupModalViewModel"])(dialogOptions, rootElement);
|
|
1460
|
-
var onVisibilityChangedCallback = function (_, options) {
|
|
1461
|
-
if (!options.isVisible) {
|
|
1462
|
-
if (typeof external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default.a.createRoot == "function") {
|
|
1463
|
-
if (!!root) {
|
|
1464
|
-
root.unmount();
|
|
1465
|
-
}
|
|
1466
|
-
}
|
|
1467
|
-
else {
|
|
1468
|
-
external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default.a.unmountComponentAtNode(popupViewModel.container);
|
|
1469
|
-
}
|
|
1470
|
-
popupViewModel.dispose();
|
|
1471
|
-
}
|
|
1472
|
-
};
|
|
1473
|
-
popupViewModel.onVisibilityChanged.add(onVisibilityChangedCallback);
|
|
1474
|
-
var root;
|
|
1475
|
-
if (typeof external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default.a.createRoot == "function") {
|
|
1476
|
-
root = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default.a.createRoot(popupViewModel.container);
|
|
1477
|
-
root.render(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(popup_PopupContainer, { model: popupViewModel }));
|
|
1478
|
-
}
|
|
1479
|
-
else {
|
|
1480
|
-
external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default.a.render(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(popup_PopupContainer, { model: popupViewModel }), popupViewModel.container);
|
|
1481
|
-
}
|
|
1482
|
-
popupViewModel.model.isVisible = true;
|
|
1483
|
-
return popupViewModel;
|
|
1484
|
-
}
|
|
1485
|
-
external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["settings"].showModal = showModal;
|
|
1486
|
-
external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["settings"].showDialog = showDialog;
|
|
1487
1448
|
|
|
1488
1449
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/action-bar/action-bar-item-dropdown.tsx
|
|
1489
1450
|
var action_bar_item_dropdown_extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -2854,6 +2815,110 @@ var svgbundle_SvgBundleComponent = /** @class */ (function (_super) {
|
|
|
2854
2815
|
}(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component));
|
|
2855
2816
|
|
|
2856
2817
|
|
|
2818
|
+
// EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"}
|
|
2819
|
+
var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__("react-dom");
|
|
2820
|
+
|
|
2821
|
+
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/popup/popup-modal.tsx
|
|
2822
|
+
var popup_modal_extends = (undefined && undefined.__extends) || (function () {
|
|
2823
|
+
var extendStatics = function (d, b) {
|
|
2824
|
+
extendStatics = Object.setPrototypeOf ||
|
|
2825
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
2826
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
2827
|
+
return extendStatics(d, b);
|
|
2828
|
+
};
|
|
2829
|
+
return function (d, b) {
|
|
2830
|
+
if (typeof b !== "function" && b !== null)
|
|
2831
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
2832
|
+
extendStatics(d, b);
|
|
2833
|
+
function __() { this.constructor = d; }
|
|
2834
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2835
|
+
};
|
|
2836
|
+
})();
|
|
2837
|
+
|
|
2838
|
+
|
|
2839
|
+
|
|
2840
|
+
|
|
2841
|
+
|
|
2842
|
+
var popup_modal_PopupModal = /** @class */ (function (_super) {
|
|
2843
|
+
popup_modal_extends(PopupModal, _super);
|
|
2844
|
+
function PopupModal(props) {
|
|
2845
|
+
var _this = _super.call(this, props) || this;
|
|
2846
|
+
_this.isInitialized = false;
|
|
2847
|
+
_this.init = function () {
|
|
2848
|
+
if (!_this.isInitialized) {
|
|
2849
|
+
external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["settings"].showModal = function (componentName, data, onApply, onCancel, cssClass, title, displayMode) {
|
|
2850
|
+
if (displayMode === void 0) { displayMode = "popup"; }
|
|
2851
|
+
var options = Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["createDialogOptions"])(componentName, data, onApply, onCancel, undefined, undefined, cssClass, title, displayMode);
|
|
2852
|
+
return _this.showDialog(options);
|
|
2853
|
+
};
|
|
2854
|
+
external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["settings"].showDialog = function (dialogOptions, rootElement) {
|
|
2855
|
+
return _this.showDialog(dialogOptions, rootElement);
|
|
2856
|
+
};
|
|
2857
|
+
_this.isInitialized = true;
|
|
2858
|
+
}
|
|
2859
|
+
};
|
|
2860
|
+
_this.clean = function () {
|
|
2861
|
+
if (_this.isInitialized) {
|
|
2862
|
+
external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["settings"].showModal = undefined;
|
|
2863
|
+
external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["settings"].showDialog = undefined;
|
|
2864
|
+
_this.isInitialized = false;
|
|
2865
|
+
}
|
|
2866
|
+
};
|
|
2867
|
+
_this.state = { changed: 0 };
|
|
2868
|
+
_this.descriptor = {
|
|
2869
|
+
init: _this.init,
|
|
2870
|
+
clean: _this.clean
|
|
2871
|
+
};
|
|
2872
|
+
return _this;
|
|
2873
|
+
}
|
|
2874
|
+
PopupModal.addModalDescriptor = function (descriptor) {
|
|
2875
|
+
if (!external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["settings"].showModal) {
|
|
2876
|
+
descriptor.init();
|
|
2877
|
+
}
|
|
2878
|
+
this.modalDescriptors.push(descriptor);
|
|
2879
|
+
};
|
|
2880
|
+
PopupModal.removeModalDescriptor = function (descriptor) {
|
|
2881
|
+
descriptor.clean();
|
|
2882
|
+
this.modalDescriptors.splice(this.modalDescriptors.indexOf(descriptor), 1);
|
|
2883
|
+
if (!external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["settings"].showModal && this.modalDescriptors[0]) {
|
|
2884
|
+
this.modalDescriptors[0].init();
|
|
2885
|
+
}
|
|
2886
|
+
};
|
|
2887
|
+
PopupModal.prototype.renderElement = function () {
|
|
2888
|
+
if (!this.model)
|
|
2889
|
+
return null;
|
|
2890
|
+
return Object(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_["createPortal"])(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(popup_PopupContainer, { model: this.model }), this.model.container);
|
|
2891
|
+
};
|
|
2892
|
+
PopupModal.prototype.showDialog = function (dialogOptions, rootElement) {
|
|
2893
|
+
var _this = this;
|
|
2894
|
+
this.model = Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["createPopupModalViewModel"])(dialogOptions, rootElement);
|
|
2895
|
+
var onVisibilityChangedCallback = function (_, options) {
|
|
2896
|
+
if (!options.isVisible) {
|
|
2897
|
+
_this.model.dispose();
|
|
2898
|
+
_this.model = undefined;
|
|
2899
|
+
_this.setState({ changed: _this.state.changed + 1 });
|
|
2900
|
+
}
|
|
2901
|
+
};
|
|
2902
|
+
this.model.onVisibilityChanged.add(onVisibilityChangedCallback);
|
|
2903
|
+
this.model.model.isVisible = true;
|
|
2904
|
+
this.setState({ changed: this.state.changed + 1 });
|
|
2905
|
+
return this.model;
|
|
2906
|
+
};
|
|
2907
|
+
PopupModal.prototype.componentDidMount = function () {
|
|
2908
|
+
PopupModal.addModalDescriptor(this.descriptor);
|
|
2909
|
+
};
|
|
2910
|
+
PopupModal.prototype.componentWillUnmount = function () {
|
|
2911
|
+
if (this.model) {
|
|
2912
|
+
this.model.dispose();
|
|
2913
|
+
this.model = undefined;
|
|
2914
|
+
}
|
|
2915
|
+
PopupModal.removeModalDescriptor(this.descriptor);
|
|
2916
|
+
};
|
|
2917
|
+
PopupModal.modalDescriptors = [];
|
|
2918
|
+
return PopupModal;
|
|
2919
|
+
}(reactquestion_element_SurveyElementBase));
|
|
2920
|
+
|
|
2921
|
+
|
|
2857
2922
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactSurvey.tsx
|
|
2858
2923
|
var reactSurvey_extends = (undefined && undefined.__extends) || (function () {
|
|
2859
2924
|
var extendStatics = function (d, b) {
|
|
@@ -2892,6 +2957,7 @@ var __assign = (undefined && undefined.__assign) || function () {
|
|
|
2892
2957
|
|
|
2893
2958
|
|
|
2894
2959
|
|
|
2960
|
+
|
|
2895
2961
|
var reactSurvey_Survey = /** @class */ (function (_super) {
|
|
2896
2962
|
reactSurvey_extends(Survey, _super);
|
|
2897
2963
|
function Survey(props) {
|
|
@@ -2992,6 +3058,7 @@ var reactSurvey_Survey = /** @class */ (function (_super) {
|
|
|
2992
3058
|
var cssClasses = this.rootNodeClassName ? this.rootNodeClassName + " " + rootCss : rootCss;
|
|
2993
3059
|
return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { id: this.rootNodeId, ref: this.rootRef, className: cssClasses, style: this.survey.themeVariables, lang: this.survey.locale || "en", dir: this.survey.localeDir },
|
|
2994
3060
|
this.survey.needRenderIcons ? external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](svgbundle_SvgBundleComponent, null) : null,
|
|
3061
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](popup_modal_PopupModal, null),
|
|
2995
3062
|
external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.survey.wrapperFormCss },
|
|
2996
3063
|
backgroundImage,
|
|
2997
3064
|
external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("form", { onSubmit: onSubmit },
|
|
@@ -8836,7 +8903,8 @@ var paneldynamic_remove_btn_SurveyQuestionPanelDynamicRemoveButton = /** @class
|
|
|
8836
8903
|
}
|
|
8837
8904
|
SurveyQuestionPanelDynamicRemoveButton.prototype.renderElement = function () {
|
|
8838
8905
|
var btnText = this.renderLocString(this.question.locPanelRemoveText);
|
|
8839
|
-
|
|
8906
|
+
var id = this.question.getPanelRemoveButtonId(this.data.panel);
|
|
8907
|
+
return (external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("button", { id: id, className: this.question.getPanelRemoveButtonCss(), onClick: this.handleClick, type: "button" },
|
|
8840
8908
|
external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", { className: this.question.cssClasses.buttonRemoveText }, btnText),
|
|
8841
8909
|
external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", { className: this.question.cssClasses.iconRemove })));
|
|
8842
8910
|
};
|
|
@@ -9329,6 +9397,7 @@ ReactElementFactory.Instance.registerElement(external_root_Survey_commonjs2_surv
|
|
|
9329
9397
|
|
|
9330
9398
|
|
|
9331
9399
|
|
|
9400
|
+
|
|
9332
9401
|
|
|
9333
9402
|
|
|
9334
9403
|
//Uncomment to include the "date" question type.
|
|
@@ -9338,7 +9407,7 @@ ReactElementFactory.Instance.registerElement(external_root_Survey_commonjs2_surv
|
|
|
9338
9407
|
|
|
9339
9408
|
|
|
9340
9409
|
|
|
9341
|
-
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.
|
|
9410
|
+
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.8", "survey-react-ui");
|
|
9342
9411
|
|
|
9343
9412
|
|
|
9344
9413
|
/***/ }),
|