survey-js-ui 2.1.0 → 2.2.0
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 +69 -56
- package/fesm/survey-js-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-js-ui.js +162 -92
- package/survey-js-ui.js.map +1 -1
- package/survey-js-ui.min.js +1 -1
- package/survey-js-ui.min.js.LICENSE.txt +1 -1
- package/typings/survey-react-ui/entries/react-ui-model.d.ts +1 -0
- package/typings/survey-react-ui/src/components/slider/slider-label-item.d.ts +10 -0
- package/typings/survey-react-ui/src/dropdown-base.d.ts +4 -4
- package/typings/survey-react-ui/src/dropdown-select.d.ts +1 -0
- package/typings/survey-react-ui/src/reactquestion_tagbox.d.ts +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-js-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
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",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"survey-core": "2.
|
|
34
|
+
"survey-core": "2.2.0",
|
|
35
35
|
"@types/react-dom": "*",
|
|
36
36
|
"@types/react": "*"
|
|
37
37
|
}
|
package/survey-js-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v2.
|
|
2
|
+
* surveyjs - Survey JavaScript library v2.2.0
|
|
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
|
*/
|
|
@@ -23,7 +23,7 @@ return /******/ (() => { // webpackBootstrap
|
|
|
23
23
|
/***/ (function(module) {
|
|
24
24
|
|
|
25
25
|
/*!
|
|
26
|
-
* surveyjs - Survey JavaScript library v2.
|
|
26
|
+
* surveyjs - Survey JavaScript library v2.2.0
|
|
27
27
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
28
28
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
29
29
|
*/
|
|
@@ -830,7 +830,7 @@ path.keys().forEach(function (key) {
|
|
|
830
830
|
/***/ (function(module) {
|
|
831
831
|
|
|
832
832
|
/*!
|
|
833
|
-
* surveyjs - Survey JavaScript library v2.
|
|
833
|
+
* surveyjs - Survey JavaScript library v2.2.0
|
|
834
834
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
835
835
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
836
836
|
*/
|
|
@@ -1639,20 +1639,20 @@ path.keys().forEach(function (key) {
|
|
|
1639
1639
|
"use strict";
|
|
1640
1640
|
__webpack_require__.r(__webpack_exports__);
|
|
1641
1641
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1642
|
-
/* harmony export */ CharacterCounterComponent: () => (/* reexport safe */
|
|
1643
|
-
/* harmony export */ ComponentsContainer: () => (/* reexport safe */
|
|
1644
|
-
/* harmony export */ Header: () => (/* reexport safe */
|
|
1645
|
-
/* harmony export */ HeaderCell: () => (/* reexport safe */
|
|
1646
|
-
/* harmony export */ HeaderMobile: () => (/* reexport safe */
|
|
1642
|
+
/* harmony export */ CharacterCounterComponent: () => (/* reexport safe */ _src_components_character_counter__WEBPACK_IMPORTED_MODULE_82__.CharacterCounterComponent),
|
|
1643
|
+
/* harmony export */ ComponentsContainer: () => (/* reexport safe */ _src_components_components_container__WEBPACK_IMPORTED_MODULE_81__.ComponentsContainer),
|
|
1644
|
+
/* harmony export */ Header: () => (/* reexport safe */ _src_components_header__WEBPACK_IMPORTED_MODULE_83__.Header),
|
|
1645
|
+
/* harmony export */ HeaderCell: () => (/* reexport safe */ _src_components_header__WEBPACK_IMPORTED_MODULE_83__.HeaderCell),
|
|
1646
|
+
/* harmony export */ HeaderMobile: () => (/* reexport safe */ _src_components_header__WEBPACK_IMPORTED_MODULE_83__.HeaderMobile),
|
|
1647
1647
|
/* harmony export */ List: () => (/* reexport safe */ _src_components_list_list__WEBPACK_IMPORTED_MODULE_59__.List),
|
|
1648
1648
|
/* harmony export */ ListItemContent: () => (/* reexport safe */ _src_components_list_list_item_content__WEBPACK_IMPORTED_MODULE_57__.ListItemContent),
|
|
1649
1649
|
/* harmony export */ ListItemGroup: () => (/* reexport safe */ _src_components_list_list_item_group__WEBPACK_IMPORTED_MODULE_58__.ListItemGroup),
|
|
1650
|
-
/* harmony export */ LoadingIndicatorComponent: () => (/* reexport safe */
|
|
1650
|
+
/* harmony export */ LoadingIndicatorComponent: () => (/* reexport safe */ _src_components_loading_indicator__WEBPACK_IMPORTED_MODULE_86__.LoadingIndicatorComponent),
|
|
1651
1651
|
/* harmony export */ LogoImage: () => (/* reexport safe */ _src_components_survey_header_logo_image__WEBPACK_IMPORTED_MODULE_63__.LogoImage),
|
|
1652
|
-
/* harmony export */ MatrixRow: () => (/* reexport safe */
|
|
1653
|
-
/* harmony export */ NotifierComponent: () => (/* reexport safe */
|
|
1652
|
+
/* harmony export */ MatrixRow: () => (/* reexport safe */ _src_components_matrix_row__WEBPACK_IMPORTED_MODULE_77__.MatrixRow),
|
|
1653
|
+
/* harmony export */ NotifierComponent: () => (/* reexport safe */ _src_components_notifier__WEBPACK_IMPORTED_MODULE_80__.NotifierComponent),
|
|
1654
1654
|
/* harmony export */ Popup: () => (/* reexport safe */ _src_components_popup_popup__WEBPACK_IMPORTED_MODULE_56__.Popup),
|
|
1655
|
-
/* harmony export */ PopupModal: () => (/* reexport safe */
|
|
1655
|
+
/* harmony export */ PopupModal: () => (/* reexport safe */ _src_components_popup_popup_modal__WEBPACK_IMPORTED_MODULE_88__.PopupModal),
|
|
1656
1656
|
/* harmony export */ PopupSurvey: () => (/* reexport safe */ _src_react_popup_survey__WEBPACK_IMPORTED_MODULE_47__.PopupSurvey),
|
|
1657
1657
|
/* harmony export */ QuestionErrorComponent: () => (/* reexport safe */ _src_components_question_error__WEBPACK_IMPORTED_MODULE_75__.QuestionErrorComponent),
|
|
1658
1658
|
/* harmony export */ RatingDropdownItem: () => (/* reexport safe */ _src_components_rating_rating_dropdown_item__WEBPACK_IMPORTED_MODULE_16__.RatingDropdownItem),
|
|
@@ -1663,8 +1663,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1663
1663
|
/* harmony export */ ReactQuestionFactory: () => (/* reexport safe */ _src_reactquestion_factory__WEBPACK_IMPORTED_MODULE_48__.ReactQuestionFactory),
|
|
1664
1664
|
/* harmony export */ ReactSurveyElement: () => (/* reexport safe */ _src_reactquestion_element__WEBPACK_IMPORTED_MODULE_9__.ReactSurveyElement),
|
|
1665
1665
|
/* harmony export */ ReactSurveyElementsWrapper: () => (/* reexport safe */ _src_reactsurveymodel__WEBPACK_IMPORTED_MODULE_1__.ReactSurveyElementsWrapper),
|
|
1666
|
-
/* harmony export */ Scroll: () => (/* reexport safe */
|
|
1667
|
-
/* harmony export */ Skeleton: () => (/* reexport safe */
|
|
1666
|
+
/* harmony export */ Scroll: () => (/* reexport safe */ _src_components_scroll__WEBPACK_IMPORTED_MODULE_79__.Scroll),
|
|
1667
|
+
/* harmony export */ Skeleton: () => (/* reexport safe */ _src_components_skeleton__WEBPACK_IMPORTED_MODULE_78__.Skeleton),
|
|
1668
|
+
/* harmony export */ SliderLabelItem: () => (/* reexport safe */ _src_components_slider_slider_label_item__WEBPACK_IMPORTED_MODULE_76__.SliderLabelItem),
|
|
1668
1669
|
/* harmony export */ Survey: () => (/* reexport safe */ _src_reactSurvey__WEBPACK_IMPORTED_MODULE_0__.Survey),
|
|
1669
1670
|
/* harmony export */ SurveyActionBar: () => (/* reexport safe */ _src_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_62__.SurveyActionBar),
|
|
1670
1671
|
/* harmony export */ SurveyElementBase: () => (/* reexport safe */ _src_reactquestion_element__WEBPACK_IMPORTED_MODULE_9__.SurveyElementBase),
|
|
@@ -1673,8 +1674,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1673
1674
|
/* harmony export */ SurveyFilePreview: () => (/* reexport safe */ _src_components_file_file_preview__WEBPACK_IMPORTED_MODULE_28__.SurveyFilePreview),
|
|
1674
1675
|
/* harmony export */ SurveyFlowPanel: () => (/* reexport safe */ _src_flow_panel__WEBPACK_IMPORTED_MODULE_7__.SurveyFlowPanel),
|
|
1675
1676
|
/* harmony export */ SurveyHeader: () => (/* reexport safe */ _src_components_survey_header_survey_header__WEBPACK_IMPORTED_MODULE_64__.SurveyHeader),
|
|
1676
|
-
/* harmony export */ SurveyLocStringEditor: () => (/* reexport safe */
|
|
1677
|
-
/* harmony export */ SurveyLocStringViewer: () => (/* reexport safe */
|
|
1677
|
+
/* harmony export */ SurveyLocStringEditor: () => (/* reexport safe */ _src_string_editor__WEBPACK_IMPORTED_MODULE_85__.SurveyLocStringEditor),
|
|
1678
|
+
/* harmony export */ SurveyLocStringViewer: () => (/* reexport safe */ _src_string_viewer__WEBPACK_IMPORTED_MODULE_84__.SurveyLocStringViewer),
|
|
1678
1679
|
/* harmony export */ SurveyNavigationBase: () => (/* reexport safe */ _src_reactSurveyNavigationBase__WEBPACK_IMPORTED_MODULE_2__.SurveyNavigationBase),
|
|
1679
1680
|
/* harmony export */ SurveyNavigationButton: () => (/* reexport safe */ _src_components_survey_actions_survey_nav_button__WEBPACK_IMPORTED_MODULE_74__.SurveyNavigationButton),
|
|
1680
1681
|
/* harmony export */ SurveyPage: () => (/* reexport safe */ _src_page__WEBPACK_IMPORTED_MODULE_4__.SurveyPage),
|
|
@@ -1739,7 +1740,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1739
1740
|
/* harmony export */ SurveyRow: () => (/* reexport safe */ _src_row__WEBPACK_IMPORTED_MODULE_5__.SurveyRow),
|
|
1740
1741
|
/* harmony export */ SurveyTimerPanel: () => (/* reexport safe */ _src_reacttimerpanel__WEBPACK_IMPORTED_MODULE_3__.SurveyTimerPanel),
|
|
1741
1742
|
/* harmony export */ SurveyWindow: () => (/* reexport safe */ _src_react_popup_survey__WEBPACK_IMPORTED_MODULE_47__.SurveyWindow),
|
|
1742
|
-
/* harmony export */ SvgBundleComponent: () => (/* reexport safe */
|
|
1743
|
+
/* harmony export */ SvgBundleComponent: () => (/* reexport safe */ _src_svgbundle__WEBPACK_IMPORTED_MODULE_87__.SvgBundleComponent),
|
|
1743
1744
|
/* harmony export */ SvgIcon: () => (/* reexport safe */ _src_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_65__.SvgIcon),
|
|
1744
1745
|
/* harmony export */ TagboxFilterString: () => (/* reexport safe */ _src_tagbox_filter__WEBPACK_IMPORTED_MODULE_17__.TagboxFilterString),
|
|
1745
1746
|
/* harmony export */ TitleActions: () => (/* reexport safe */ _src_components_title_title_actions__WEBPACK_IMPORTED_MODULE_60__.TitleActions),
|
|
@@ -1822,18 +1823,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1822
1823
|
/* harmony import */ var _src_components_paneldynamic_actions_paneldynamic_progress_text__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ../src/components/paneldynamic-actions/paneldynamic-progress-text */ "../survey-react-ui/src/components/paneldynamic-actions/paneldynamic-progress-text.tsx");
|
|
1823
1824
|
/* harmony import */ var _src_components_survey_actions_survey_nav_button__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ../src/components/survey-actions/survey-nav-button */ "../survey-react-ui/src/components/survey-actions/survey-nav-button.tsx");
|
|
1824
1825
|
/* harmony import */ var _src_components_question_error__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ../src/components/question-error */ "../survey-react-ui/src/components/question-error.tsx");
|
|
1825
|
-
/* harmony import */ var
|
|
1826
|
-
/* harmony import */ var
|
|
1827
|
-
/* harmony import */ var
|
|
1828
|
-
/* harmony import */ var
|
|
1829
|
-
/* harmony import */ var
|
|
1830
|
-
/* harmony import */ var
|
|
1831
|
-
/* harmony import */ var
|
|
1832
|
-
/* harmony import */ var
|
|
1833
|
-
/* harmony import */ var
|
|
1834
|
-
/* harmony import */ var
|
|
1835
|
-
/* harmony import */ var
|
|
1836
|
-
/* harmony import */ var
|
|
1826
|
+
/* harmony import */ var _src_components_slider_slider_label_item__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ../src/components/slider/slider-label-item */ "../survey-react-ui/src/components/slider/slider-label-item.tsx");
|
|
1827
|
+
/* harmony import */ var _src_components_matrix_row__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ../src/components/matrix/row */ "../survey-react-ui/src/components/matrix/row.tsx");
|
|
1828
|
+
/* harmony import */ var _src_components_skeleton__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ../src/components/skeleton */ "../survey-react-ui/src/components/skeleton.tsx");
|
|
1829
|
+
/* harmony import */ var _src_components_scroll__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ../src/components/scroll */ "../survey-react-ui/src/components/scroll.tsx");
|
|
1830
|
+
/* harmony import */ var _src_components_notifier__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ../src/components/notifier */ "../survey-react-ui/src/components/notifier.tsx");
|
|
1831
|
+
/* harmony import */ var _src_components_components_container__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ../src/components/components-container */ "../survey-react-ui/src/components/components-container.tsx");
|
|
1832
|
+
/* harmony import */ var _src_components_character_counter__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ../src/components/character-counter */ "../survey-react-ui/src/components/character-counter.tsx");
|
|
1833
|
+
/* harmony import */ var _src_components_header__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ../src/components/header */ "../survey-react-ui/src/components/header.tsx");
|
|
1834
|
+
/* harmony import */ var _src_string_viewer__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ../src/string-viewer */ "../survey-react-ui/src/string-viewer.tsx");
|
|
1835
|
+
/* harmony import */ var _src_string_editor__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ../src/string-editor */ "../survey-react-ui/src/string-editor.tsx");
|
|
1836
|
+
/* harmony import */ var _src_components_loading_indicator__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! ../src/components/loading-indicator */ "../survey-react-ui/src/components/loading-indicator.tsx");
|
|
1837
|
+
/* harmony import */ var _src_svgbundle__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! ../src/svgbundle */ "../survey-react-ui/src/svgbundle.tsx");
|
|
1838
|
+
/* harmony import */ var _src_components_popup_popup_modal__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(/*! ../src/components/popup/popup-modal */ "../survey-react-ui/src/components/popup/popup-modal.tsx");
|
|
1837
1839
|
// react
|
|
1838
1840
|
|
|
1839
1841
|
|
|
@@ -1921,6 +1923,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1921
1923
|
|
|
1922
1924
|
|
|
1923
1925
|
|
|
1926
|
+
|
|
1924
1927
|
|
|
1925
1928
|
|
|
1926
1929
|
//Uncomment to include the "date" question type.
|
|
@@ -5219,6 +5222,80 @@ _element_factory__WEBPACK_IMPORTED_MODULE_1__.ReactElementFactory.Instance.regis
|
|
|
5219
5222
|
});
|
|
5220
5223
|
|
|
5221
5224
|
|
|
5225
|
+
/***/ }),
|
|
5226
|
+
|
|
5227
|
+
/***/ "../survey-react-ui/src/components/slider/slider-label-item.tsx":
|
|
5228
|
+
/*!**********************************************************************!*\
|
|
5229
|
+
!*** ../survey-react-ui/src/components/slider/slider-label-item.tsx ***!
|
|
5230
|
+
\**********************************************************************/
|
|
5231
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
5232
|
+
|
|
5233
|
+
"use strict";
|
|
5234
|
+
__webpack_require__.r(__webpack_exports__);
|
|
5235
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5236
|
+
/* harmony export */ SliderLabelItem: () => (/* binding */ SliderLabelItem)
|
|
5237
|
+
/* harmony export */ });
|
|
5238
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/preact/compat/dist/compat.module.js");
|
|
5239
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../element-factory */ "../survey-react-ui/src/element-factory.tsx");
|
|
5240
|
+
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../reactquestion_element */ "../survey-react-ui/src/reactquestion_element.tsx");
|
|
5241
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
5242
|
+
var extendStatics = function (d, b) {
|
|
5243
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5244
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5245
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
5246
|
+
return extendStatics(d, b);
|
|
5247
|
+
};
|
|
5248
|
+
return function (d, b) {
|
|
5249
|
+
if (typeof b !== "function" && b !== null)
|
|
5250
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
5251
|
+
extendStatics(d, b);
|
|
5252
|
+
function __() { this.constructor = d; }
|
|
5253
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
5254
|
+
};
|
|
5255
|
+
})();
|
|
5256
|
+
|
|
5257
|
+
|
|
5258
|
+
|
|
5259
|
+
var SliderLabelItem = /** @class */ (function (_super) {
|
|
5260
|
+
__extends(SliderLabelItem, _super);
|
|
5261
|
+
function SliderLabelItem() {
|
|
5262
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
5263
|
+
}
|
|
5264
|
+
SliderLabelItem.prototype.getStateElement = function () {
|
|
5265
|
+
return this.item;
|
|
5266
|
+
};
|
|
5267
|
+
Object.defineProperty(SliderLabelItem.prototype, "item", {
|
|
5268
|
+
get: function () {
|
|
5269
|
+
return this.props.item;
|
|
5270
|
+
},
|
|
5271
|
+
enumerable: false,
|
|
5272
|
+
configurable: true
|
|
5273
|
+
});
|
|
5274
|
+
Object.defineProperty(SliderLabelItem.prototype, "question", {
|
|
5275
|
+
get: function () {
|
|
5276
|
+
return this.props.question;
|
|
5277
|
+
},
|
|
5278
|
+
enumerable: false,
|
|
5279
|
+
configurable: true
|
|
5280
|
+
});
|
|
5281
|
+
SliderLabelItem.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
5282
|
+
_super.prototype.componentDidUpdate.call(this, prevProps, prevState);
|
|
5283
|
+
};
|
|
5284
|
+
SliderLabelItem.prototype.renderElement = function () {
|
|
5285
|
+
var _a = this.question, cssClasses = _a.cssClasses, handleLabelPointerUp = _a.handleLabelPointerUp, getLabelCss = _a.getLabelCss, getPercent = _a.getPercent;
|
|
5286
|
+
var _b = this.item, value = _b.value, locText = _b.locText;
|
|
5287
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { key: this.item.id, className: getLabelCss(locText), style: { left: getPercent(value) + "%" }, onPointerUp: function (e) { handleLabelPointerUp(e.nativeEvent, value); } },
|
|
5288
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.labelTick }),
|
|
5289
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.labelText }, this.renderLocString(locText)));
|
|
5290
|
+
};
|
|
5291
|
+
return SliderLabelItem;
|
|
5292
|
+
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
5293
|
+
|
|
5294
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_1__.ReactElementFactory.Instance.registerElement("sv-slider-label-item", function (props) {
|
|
5295
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SliderLabelItem, props);
|
|
5296
|
+
});
|
|
5297
|
+
|
|
5298
|
+
|
|
5222
5299
|
/***/ }),
|
|
5223
5300
|
|
|
5224
5301
|
/***/ "../survey-react-ui/src/components/survey-actions/survey-nav-button.tsx":
|
|
@@ -5941,10 +6018,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5941
6018
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
5942
6019
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
5943
6020
|
/* harmony import */ var _components_popup_popup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/popup/popup */ "../survey-react-ui/src/components/popup/popup.tsx");
|
|
5944
|
-
/* harmony import */ var
|
|
5945
|
-
/* harmony import */ var
|
|
5946
|
-
/* harmony import */ var
|
|
5947
|
-
/* harmony import */ var
|
|
6021
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./element-factory */ "../survey-react-ui/src/element-factory.tsx");
|
|
6022
|
+
/* harmony import */ var _reactquestion_comment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./reactquestion_comment */ "../survey-react-ui/src/reactquestion_comment.tsx");
|
|
6023
|
+
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./reactquestion_element */ "../survey-react-ui/src/reactquestion_element.tsx");
|
|
6024
|
+
/* harmony import */ var _components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/action-bar/action-bar */ "../survey-react-ui/src/components/action-bar/action-bar.tsx");
|
|
5948
6025
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
5949
6026
|
var extendStatics = function (d, b) {
|
|
5950
6027
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -5996,6 +6073,13 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
|
5996
6073
|
};
|
|
5997
6074
|
return _this;
|
|
5998
6075
|
}
|
|
6076
|
+
Object.defineProperty(SurveyQuestionDropdownBase.prototype, "dropdownListModel", {
|
|
6077
|
+
get: function () {
|
|
6078
|
+
return this.question["dropdownListModel"];
|
|
6079
|
+
},
|
|
6080
|
+
enumerable: false,
|
|
6081
|
+
configurable: true
|
|
6082
|
+
});
|
|
5999
6083
|
SurveyQuestionDropdownBase.prototype.getStateElement = function () {
|
|
6000
6084
|
return this.question["dropdownListModel"];
|
|
6001
6085
|
};
|
|
@@ -6007,7 +6091,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
|
6007
6091
|
};
|
|
6008
6092
|
SurveyQuestionDropdownBase.prototype.renderReadOnlyElement = function () {
|
|
6009
6093
|
if (this.question.locReadOnlyText) {
|
|
6010
|
-
return this.renderLocString(this.question.locReadOnlyText);
|
|
6094
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.controlValue }, this.renderLocString(this.question.locReadOnlyText)));
|
|
6011
6095
|
}
|
|
6012
6096
|
else {
|
|
6013
6097
|
return null;
|
|
@@ -6016,33 +6100,34 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
|
6016
6100
|
SurveyQuestionDropdownBase.prototype.renderSelect = function (cssClasses) {
|
|
6017
6101
|
var _this = this;
|
|
6018
6102
|
var selectElement = null;
|
|
6019
|
-
var dropdownListModel = this.
|
|
6103
|
+
var dropdownListModel = this.dropdownListModel;
|
|
6020
6104
|
if (this.question.isReadOnly) {
|
|
6021
6105
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6022
6106
|
// @ts-ignore
|
|
6023
|
-
selectElement = react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { id: this.question.inputId, role: dropdownListModel === null || dropdownListModel === void 0 ? void 0 : dropdownListModel.ariaQuestionRole, "aria-label": dropdownListModel === null || dropdownListModel === void 0 ? void 0 : dropdownListModel.ariaQuestionLabel, "aria-labelledby": dropdownListModel === null || dropdownListModel === void 0 ? void 0 : dropdownListModel.ariaQuestionLabelledby, "aria-describedby": dropdownListModel === null || dropdownListModel === void 0 ? void 0 : dropdownListModel.ariaQuestionDescribedby, "aria-expanded": "false", "aria-readonly": "true", "aria-disabled": "true", tabIndex: this.question.isDisabledAttr ? undefined : 0, className: this.question.getControlClass(), ref: function (div) { return (_this.setControl(div)); } },
|
|
6107
|
+
selectElement = react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { id: this.question.inputId, role: dropdownListModel === null || dropdownListModel === void 0 ? void 0 : dropdownListModel.ariaQuestionRole, "aria-label": dropdownListModel === null || dropdownListModel === void 0 ? void 0 : dropdownListModel.ariaQuestionLabel, "aria-labelledby": dropdownListModel === null || dropdownListModel === void 0 ? void 0 : dropdownListModel.ariaQuestionLabelledby, "aria-describedby": dropdownListModel === null || dropdownListModel === void 0 ? void 0 : dropdownListModel.ariaQuestionDescribedby, "aria-expanded": "false", "aria-readonly": "true", "aria-disabled": "true", tabIndex: this.question.isDisabledAttr ? undefined : 0, className: this.question.getControlClass(), ref: function (div) { return (_this.setControl(div)); } },
|
|
6108
|
+
this.renderReadOnlyElement(),
|
|
6109
|
+
this.renderEditorButtons());
|
|
6024
6110
|
}
|
|
6025
6111
|
else {
|
|
6026
6112
|
selectElement = react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
|
|
6027
|
-
this.renderInput(
|
|
6113
|
+
this.renderInput(),
|
|
6028
6114
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_popup_popup__WEBPACK_IMPORTED_MODULE_2__.Popup, { model: dropdownListModel.popupModel }));
|
|
6029
6115
|
}
|
|
6030
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.selectWrapper, onClick: this.click },
|
|
6031
|
-
selectElement,
|
|
6032
|
-
this.createChevronButton()));
|
|
6116
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.selectWrapper, onClick: this.click }, selectElement));
|
|
6033
6117
|
};
|
|
6034
|
-
SurveyQuestionDropdownBase.prototype.renderValueElement = function (
|
|
6118
|
+
SurveyQuestionDropdownBase.prototype.renderValueElement = function () {
|
|
6035
6119
|
if (this.question.showInputFieldComponent) {
|
|
6036
|
-
return
|
|
6120
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.createElement(this.question.inputFieldComponentName, { item: this.dropdownListModel.getSelectedAction(), question: this.question });
|
|
6037
6121
|
}
|
|
6038
6122
|
else if (this.question.showSelectedItemLocText) {
|
|
6039
6123
|
return this.renderLocString(this.question.selectedItemLocText);
|
|
6040
6124
|
}
|
|
6041
6125
|
return null;
|
|
6042
6126
|
};
|
|
6043
|
-
SurveyQuestionDropdownBase.prototype.renderInput = function (
|
|
6127
|
+
SurveyQuestionDropdownBase.prototype.renderInput = function () {
|
|
6044
6128
|
var _this = this;
|
|
6045
|
-
var
|
|
6129
|
+
var dropdownListModel = this.dropdownListModel;
|
|
6130
|
+
var valueElement = this.renderValueElement();
|
|
6046
6131
|
var root = survey_core__WEBPACK_IMPORTED_MODULE_1__.settings.environment.root;
|
|
6047
6132
|
var onInputChange = function (e) {
|
|
6048
6133
|
if (e.target === root.activeElement) {
|
|
@@ -6063,24 +6148,14 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
|
6063
6148
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", null, dropdownListModel.hintStringSuffix))) : null,
|
|
6064
6149
|
valueElement,
|
|
6065
6150
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), ref: function (element) { return (_this.inputElement = element); }, className: this.question.cssClasses.filterStringInput, role: dropdownListModel.ariaInputRole, "aria-required": dropdownListModel.ariaInputRequired, "aria-invalid": dropdownListModel.ariaInputInvalid, "aria-errormessage": dropdownListModel.ariaInputErrorMessage, "aria-expanded": dropdownListModel.ariaInputExpanded, "aria-label": dropdownListModel.ariaInputLabel, "aria-labelledby": dropdownListModel.ariaInputLabelledby, "aria-describedby": dropdownListModel.ariaInputDescribedby, "aria-controls": dropdownListModel.ariaInputControls, "aria-activedescendant": dropdownListModel.ariaInputActivedescendant, placeholder: dropdownListModel.placeholderRendered, readOnly: dropdownListModel.filterReadOnly ? true : undefined, tabIndex: dropdownListModel.noTabIndex ? undefined : -1, disabled: this.question.isDisabledAttr, inputMode: dropdownListModel.inputMode, onChange: function (e) { onInputChange(e); }, onBlur: this.blur, onFocus: this.focus })),
|
|
6066
|
-
this.
|
|
6067
|
-
};
|
|
6068
|
-
SurveyQuestionDropdownBase.prototype.createClearButton = function () {
|
|
6069
|
-
if (!this.question.allowClear || !this.question.cssClasses.cleanButtonIconId)
|
|
6070
|
-
return null;
|
|
6071
|
-
var style = { display: !this.question.showClearButton ? "none" : "" };
|
|
6072
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.cleanButton, style: style, onClick: this.clear, "aria-hidden": "true" },
|
|
6073
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { className: this.question.cssClasses.cleanButtonSvg, iconName: this.question.cssClasses.cleanButtonIconId, title: this.question.clearCaption, size: "auto" })));
|
|
6074
|
-
};
|
|
6075
|
-
SurveyQuestionDropdownBase.prototype.createChevronButton = function () {
|
|
6076
|
-
if (!this.question.cssClasses.chevronButtonIconId)
|
|
6077
|
-
return null;
|
|
6078
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.chevronButton, "aria-hidden": "true", onPointerDown: this.chevronPointerDown },
|
|
6079
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { className: this.question.cssClasses.chevronButtonSvg, iconName: this.question.cssClasses.chevronButtonIconId, size: "auto" })));
|
|
6151
|
+
this.renderEditorButtons()));
|
|
6080
6152
|
};
|
|
6081
6153
|
SurveyQuestionDropdownBase.prototype.renderOther = function (cssClasses) {
|
|
6082
6154
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.getCommentAreaCss(true) },
|
|
6083
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
6155
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_reactquestion_comment__WEBPACK_IMPORTED_MODULE_4__.SurveyQuestionOtherValueItem, { question: this.question, otherCss: cssClasses.other, cssClasses: cssClasses, isDisplayMode: this.isDisplayMode, isOther: true })));
|
|
6156
|
+
};
|
|
6157
|
+
SurveyQuestionDropdownBase.prototype.renderEditorButtons = function () {
|
|
6158
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_6__.SurveyActionBar, { model: this.dropdownListModel.editorButtons });
|
|
6084
6159
|
};
|
|
6085
6160
|
SurveyQuestionDropdownBase.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
6086
6161
|
_super.prototype.componentDidUpdate.call(this, prevProps, prevState);
|
|
@@ -6105,7 +6180,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
|
6105
6180
|
}
|
|
6106
6181
|
};
|
|
6107
6182
|
return SurveyQuestionDropdownBase;
|
|
6108
|
-
}(
|
|
6183
|
+
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_5__.SurveyQuestionUncontrolledElement));
|
|
6109
6184
|
|
|
6110
6185
|
|
|
6111
6186
|
|
|
@@ -6211,6 +6286,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6211
6286
|
/* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reactquestion_factory */ "../survey-react-ui/src/reactquestion_factory.tsx");
|
|
6212
6287
|
/* harmony import */ var _reactquestion_dropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reactquestion_dropdown */ "../survey-react-ui/src/reactquestion_dropdown.tsx");
|
|
6213
6288
|
/* harmony import */ var _dropdown_item__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./dropdown-item */ "../survey-react-ui/src/dropdown-item.tsx");
|
|
6289
|
+
/* harmony import */ var _components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/svg-icon/svg-icon */ "../survey-react-ui/src/components/svg-icon/svg-icon.tsx");
|
|
6214
6290
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
6215
6291
|
var extendStatics = function (d, b) {
|
|
6216
6292
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -6231,6 +6307,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
6231
6307
|
|
|
6232
6308
|
|
|
6233
6309
|
|
|
6310
|
+
|
|
6234
6311
|
var SurveyQuestionDropdownSelect = /** @class */ (function (_super) {
|
|
6235
6312
|
__extends(SurveyQuestionDropdownSelect, _super);
|
|
6236
6313
|
function SurveyQuestionDropdownSelect(props) {
|
|
@@ -6255,6 +6332,12 @@ var SurveyQuestionDropdownSelect = /** @class */ (function (_super) {
|
|
|
6255
6332
|
selectElement,
|
|
6256
6333
|
this.createChevronButton()));
|
|
6257
6334
|
};
|
|
6335
|
+
SurveyQuestionDropdownSelect.prototype.createChevronButton = function () {
|
|
6336
|
+
if (!this.question.cssClasses.chevronButtonIconId)
|
|
6337
|
+
return null;
|
|
6338
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.chevronButton, "aria-hidden": "true", onPointerDown: this.chevronPointerDown },
|
|
6339
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_5__.SvgIcon, { className: this.question.cssClasses.chevronButtonSvg, iconName: this.question.cssClasses.chevronButtonIconId, size: "auto" })));
|
|
6340
|
+
};
|
|
6258
6341
|
return SurveyQuestionDropdownSelect;
|
|
6259
6342
|
}(_reactquestion_dropdown__WEBPACK_IMPORTED_MODULE_3__.SurveyQuestionDropdown));
|
|
6260
6343
|
|
|
@@ -10380,7 +10463,7 @@ var SurveyQuestionMatrixCell = /** @class */ (function (_super) {
|
|
|
10380
10463
|
mobileSpan));
|
|
10381
10464
|
};
|
|
10382
10465
|
SurveyQuestionMatrixCell.prototype.renderInput = function (inputId, isChecked) {
|
|
10383
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { id: inputId, type: "radio", className: this.cssClasses.itemValue, name: this.row.fullName, value: this.column.value, disabled: this.row.isDisabledAttr, readOnly: this.row.isReadOnlyAttr, checked: isChecked, onChange: this.handleOnChange, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.getCellAriaLabel(this.row
|
|
10466
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { id: inputId, type: "radio", className: this.cssClasses.itemValue, name: this.row.fullName, value: this.column.value, disabled: this.row.isDisabledAttr, readOnly: this.row.isReadOnlyAttr, checked: isChecked, onChange: this.handleOnChange, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.getCellAriaLabel(this.row, this.column), "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-errormessage": this.question.a11y_input_ariaErrormessage }));
|
|
10384
10467
|
};
|
|
10385
10468
|
return SurveyQuestionMatrixCell;
|
|
10386
10469
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__.ReactSurveyElement));
|
|
@@ -10880,7 +10963,7 @@ var SurveyQuestionMatrixDropdownCell = /** @class */ (function (_super) {
|
|
|
10880
10963
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_reactquestion_radiogroup__WEBPACK_IMPORTED_MODULE_4__.SurveyQuestionRadioItem, { key: key, question: this.cell.question, cssClasses: this.cell.question.cssClasses, isDisplayMode: this.cell.question.isInputReadOnly, item: this.cell.item, index: this.cell.choiceIndex.toString(), isChecked: this.cell.question.value === this.cell.item.value, isDisabled: this.cell.question.isReadOnly || !this.cell.item.isEnabled, hideCaption: true, ariaLabel: this.getCellAriaLabel() }));
|
|
10881
10964
|
};
|
|
10882
10965
|
SurveyQuestionMatrixDropdownCell.prototype.getCellAriaLabel = function () {
|
|
10883
|
-
return this.question.parentQuestion.getCellAriaLabel(this.cell.row
|
|
10966
|
+
return this.question.parentQuestion.getCellAriaLabel(this.cell.row, this.cell.column);
|
|
10884
10967
|
};
|
|
10885
10968
|
return SurveyQuestionMatrixDropdownCell;
|
|
10886
10969
|
}(_reactquestion__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionAndErrorsCell));
|
|
@@ -12113,6 +12196,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12113
12196
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/preact/compat/dist/compat.module.js");
|
|
12114
12197
|
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reactquestion_element */ "../survey-react-ui/src/reactquestion_element.tsx");
|
|
12115
12198
|
/* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reactquestion_factory */ "../survey-react-ui/src/reactquestion_factory.tsx");
|
|
12199
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./element-factory */ "../survey-react-ui/src/element-factory.tsx");
|
|
12116
12200
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
12117
12201
|
var extendStatics = function (d, b) {
|
|
12118
12202
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -12131,6 +12215,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
12131
12215
|
|
|
12132
12216
|
|
|
12133
12217
|
|
|
12218
|
+
|
|
12134
12219
|
var SurveyQuestionSlider = /** @class */ (function (_super) {
|
|
12135
12220
|
__extends(SurveyQuestionSlider, _super);
|
|
12136
12221
|
function SurveyQuestionSlider(props) {
|
|
@@ -12170,7 +12255,7 @@ var SurveyQuestionSlider = /** @class */ (function (_super) {
|
|
|
12170
12255
|
};
|
|
12171
12256
|
SurveyQuestionSlider.prototype.getInputsAndThumbs = function () {
|
|
12172
12257
|
var inputsAndThumbs = [];
|
|
12173
|
-
var value = this.question.
|
|
12258
|
+
var value = this.question.renderedValue;
|
|
12174
12259
|
for (var i = 0; i < value.length; i++) {
|
|
12175
12260
|
var thumbAndInput = react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: i },
|
|
12176
12261
|
this.getInput(i),
|
|
@@ -12180,8 +12265,8 @@ var SurveyQuestionSlider = /** @class */ (function (_super) {
|
|
|
12180
12265
|
return inputsAndThumbs;
|
|
12181
12266
|
};
|
|
12182
12267
|
SurveyQuestionSlider.prototype.getThumb = function (i) {
|
|
12183
|
-
var _a = this.question, cssClasses = _a.cssClasses, getThumbContainerCss = _a.getThumbContainerCss, tooltipVisibility = _a.tooltipVisibility, tooltipCss = _a.tooltipCss, getPercent = _a.getPercent,
|
|
12184
|
-
var value =
|
|
12268
|
+
var _a = this.question, cssClasses = _a.cssClasses, getThumbContainerCss = _a.getThumbContainerCss, tooltipVisibility = _a.tooltipVisibility, tooltipCss = _a.tooltipCss, getPercent = _a.getPercent, renderedValue = _a.renderedValue, getTooltipValue = _a.getTooltipValue;
|
|
12269
|
+
var value = renderedValue[i];
|
|
12185
12270
|
var tooltip = null;
|
|
12186
12271
|
if (tooltipVisibility !== "never") {
|
|
12187
12272
|
tooltip = react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: tooltipCss },
|
|
@@ -12195,8 +12280,8 @@ var SurveyQuestionSlider = /** @class */ (function (_super) {
|
|
|
12195
12280
|
return thumb;
|
|
12196
12281
|
};
|
|
12197
12282
|
SurveyQuestionSlider.prototype.getInput = function (i) {
|
|
12198
|
-
var _a = this.question, max = _a.renderedMax, min = _a.renderedMin, step = _a.step, cssClasses = _a.cssClasses, isDisabledAttr = _a.isDisabledAttr,
|
|
12199
|
-
var value =
|
|
12283
|
+
var _a = this.question, max = _a.renderedMax, min = _a.renderedMin, step = _a.step, cssClasses = _a.cssClasses, isDisabledAttr = _a.isDisabledAttr, renderedValue = _a.renderedValue, handleOnChange = _a.handleOnChange, handlePointerDown = _a.handlePointerDown, handlePointerUp = _a.handlePointerUp, handleKeyDown = _a.handleKeyDown, handleKeyUp = _a.handleKeyUp, handleOnFocus = _a.handleOnFocus, handleOnBlur = _a.handleOnBlur;
|
|
12284
|
+
var value = renderedValue[i];
|
|
12200
12285
|
var input = react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { className: cssClasses.input, id: "sjs-slider-input-" + i, type: "range", min: min, max: max, step: step, value: value, onChange: function (e) { handleOnChange(e.nativeEvent, i); }, onPointerDown: function (e) { handlePointerDown(e.nativeEvent); }, onPointerUp: function (e) { e.stopPropagation(); handlePointerUp(e.nativeEvent); }, onKeyDown: function (e) { handleKeyDown(e.nativeEvent); }, onKeyUp: function (e) { handleKeyUp(e.nativeEvent); }, onFocus: function () { handleOnFocus(i); }, onBlur: function () { handleOnBlur(); }, disabled: isDisabledAttr, "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 });
|
|
12201
12286
|
return input;
|
|
12202
12287
|
};
|
|
@@ -12207,18 +12292,10 @@ var SurveyQuestionSlider = /** @class */ (function (_super) {
|
|
|
12207
12292
|
};
|
|
12208
12293
|
SurveyQuestionSlider.prototype.getLabels = function () {
|
|
12209
12294
|
var labels = [];
|
|
12210
|
-
var _a = this.question, renderedLabels = _a.renderedLabels, cssClasses = _a.cssClasses
|
|
12211
|
-
var _loop_1 = function (i) {
|
|
12212
|
-
var value = renderedLabels[i].value;
|
|
12213
|
-
var text = renderedLabels[i].locText;
|
|
12214
|
-
var label = react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { key: i, className: getLabelCss(i), style: { left: value + "%" }, onPointerUp: function (e) { handleLabelPointerUp(e.nativeEvent, i); } },
|
|
12215
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.labelTick }),
|
|
12216
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.labelText }, this_1.renderLocString(text)));
|
|
12217
|
-
labels.push(label);
|
|
12218
|
-
};
|
|
12219
|
-
var this_1 = this;
|
|
12295
|
+
var _a = this.question, renderedLabels = _a.renderedLabels, cssClasses = _a.cssClasses;
|
|
12220
12296
|
for (var i = 0; i < renderedLabels.length; i++) {
|
|
12221
|
-
|
|
12297
|
+
var label = _element_factory__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.createElement("sv-slider-label-item", { item: renderedLabels[i], question: this.question, key: renderedLabels[i].id });
|
|
12298
|
+
labels.push(label);
|
|
12222
12299
|
}
|
|
12223
12300
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.labelsContainer },
|
|
12224
12301
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, labels));
|
|
@@ -12278,9 +12355,9 @@ var SurveyQuestionTagbox = /** @class */ (function (_super) {
|
|
|
12278
12355
|
var renderedItem = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_tagbox_item__WEBPACK_IMPORTED_MODULE_3__.SurveyQuestionTagboxItem, { key: key, question: this.question, item: item }));
|
|
12279
12356
|
return renderedItem;
|
|
12280
12357
|
};
|
|
12281
|
-
SurveyQuestionTagbox.prototype.renderInput = function (
|
|
12358
|
+
SurveyQuestionTagbox.prototype.renderInput = function () {
|
|
12282
12359
|
var _this = this;
|
|
12283
|
-
var
|
|
12360
|
+
var dropdownListModel = this.dropdownListModel;
|
|
12284
12361
|
var items = this.question.selectedChoices.map(function (choice, index) { return _this.renderItem("item" + index, choice); });
|
|
12285
12362
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.noTabIndex ? undefined : 0,
|
|
12286
12363
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -12288,8 +12365,8 @@ var SurveyQuestionTagbox = /** @class */ (function (_super) {
|
|
|
12288
12365
|
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: dropdownListModel.ariaQuestionRole, "aria-required": dropdownListModel.ariaQuestionRequired, "aria-invalid": dropdownListModel.ariaQuestionInvalid, "aria-errormessage": dropdownListModel.ariaQuestionErrorMessage, "aria-label": dropdownListModel.ariaQuestionLabel, "aria-labelledby": dropdownListModel.ariaQuestionLabelledby, "aria-describedby": dropdownListModel.ariaQuestionDescribedby, "aria-expanded": dropdownListModel.ariaQuestionExpanded, "aria-controls": dropdownListModel.ariaQuestionControls, "aria-activedescendant": dropdownListModel.ariaQuestionActivedescendant, ref: function (div) { return (_this.setControl(div)); } },
|
|
12289
12366
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.controlValue },
|
|
12290
12367
|
items,
|
|
12291
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_tagbox_filter__WEBPACK_IMPORTED_MODULE_4__.TagboxFilterString, { model:
|
|
12292
|
-
this.
|
|
12368
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_tagbox_filter__WEBPACK_IMPORTED_MODULE_4__.TagboxFilterString, { model: dropdownListModel, question: this.question })),
|
|
12369
|
+
this.renderEditorButtons()));
|
|
12293
12370
|
};
|
|
12294
12371
|
SurveyQuestionTagbox.prototype.renderElement = function () {
|
|
12295
12372
|
var cssClasses = this.question.cssClasses;
|
|
@@ -12299,14 +12376,6 @@ var SurveyQuestionTagbox = /** @class */ (function (_super) {
|
|
|
12299
12376
|
select,
|
|
12300
12377
|
comment));
|
|
12301
12378
|
};
|
|
12302
|
-
SurveyQuestionTagbox.prototype.renderReadOnlyElement = function () {
|
|
12303
|
-
if (this.question.locReadOnlyText) {
|
|
12304
|
-
return this.renderLocString(this.question.locReadOnlyText);
|
|
12305
|
-
}
|
|
12306
|
-
else {
|
|
12307
|
-
return null;
|
|
12308
|
-
}
|
|
12309
|
-
};
|
|
12310
12379
|
return SurveyQuestionTagbox;
|
|
12311
12380
|
}(_dropdown_base__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionDropdownBase));
|
|
12312
12381
|
|
|
@@ -13345,7 +13414,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13345
13414
|
/* harmony export */ render: () => (/* binding */ E),
|
|
13346
13415
|
/* harmony export */ toChildArray: () => (/* binding */ H)
|
|
13347
13416
|
/* harmony export */ });
|
|
13348
|
-
var n,l,u,t,i,r,o,e,f,c,s,a,h,p={},y=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,w=Array.isArray;function d(n,l){for(var u in l)n[u]=l[u];return n}function g(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function _(l,u,t){var i,r,o,e={};for(o in u)"key"==o?i=u[o]:"ref"==o?r=u[o]:e[o]=u[o];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps)null==e[o]&&(e[o]=l.defaultProps[o]);return m(l,e,i,r,null)}function m(n,t,i,r,o){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++u:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(e),e}function b(){return{current:null}}function k(n){return n.children}function x(n,l){this.props=n,this.context=l}function S(n,l){if(null==l)return n.__?S(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?S(n):null}function C(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return C(n)}}function M(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!$.__r++||r!=l.debounceRendering)&&((r=l.debounceRendering)||o)($)}function $(){for(var n,u,t,r,o,f,c,s=1;i.length;)i.length>s&&i.sort(e),n=i.shift(),s=i.length,n.__d&&(t=void 0,o=(r=(u=n).__v).__e,f=[],c=[],u.__P&&((t=d({},r)).__v=r.__v+1,l.vnode&&l.vnode(t),O(u.__P,t,r,u.__n,u.__P.namespaceURI,32&r.__u?[o]:null,f,null==o?S(r):o,!!(32&r.__u),c),t.__v=r.__v,t.__.__k[t.__i]=t,z(f,t,c),t.__e!=o&&C(t)));$.__r=0}function I(n,l,u,t,i,r,o,e,f,c,s){var a,h,v,w,d,g,_=t&&t.__k||y,m=l.length;for(f=P(u,l,_,f,m),a=0;a<m;a++)null!=(v=u.__k[a])&&(h=-1==v.__i?p:_[v.__i]||p,v.__i=a,g=O(n,v,h,i,r,o,e,f,c,s),w=v.__e,v.ref&&h.ref!=v.ref&&(h.ref&&q(h.ref,null,v),s.push(v.ref,v.__c||w,v)),null==d&&null!=w&&(d=w),4&v.__u||h.__k===v.__k?f=A(v,f,n):"function"==typeof v.type&&void 0!==g?f=g:w&&(f=w.nextSibling),v.__u&=-7);return u.__e=d,f}function P(n,l,u,t,i){var r,o,e,f,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?(f=r+h,(o=n.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?m(null,o,null,null,null):w(o)?m(k,{children:o},null,null,null):null==o.constructor&&o.__b>0?m(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=n,o.__b=n.__b+1,e=null,-1!=(c=o.__i=L(o,u,f,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null==e.__v?(-1==c&&(i>s?h--:i<s&&h++),"function"!=typeof o.type&&(o.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,o.__u|=4))):n.__k[r]=null;if(a)for(r=0;r<s;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=S(e)),B(e,e));return t}function A(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=A(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!u.contains(l)&&(l=S(n)),u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8==l.nodeType);return l}function H(n,l){return l=l||[],null==n||"boolean"==typeof n||(w(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function L(n,l,u,t){var i,r,o=n.key,e=n.type,f=l[u];if(null===f&&null==n.key||f&&o==f.key&&e==f.type&&0==(2&f.__u))return u;if(t>(null!=f&&0==(2&f.__u)?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;){if(i>=0){if((f=l[i])&&0==(2&f.__u)&&o==f.key&&e==f.type)return i;i--}if(r<l.length){if((f=l[r])&&0==(2&f.__u)&&o==f.key&&e==f.type)return r;r++}}return-1}function T(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||v.test(l)?u:u+"px"}function j(n,l,u,t,i){var r,o;n:if("style"==l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T(n.style,l,"");if(u)for(l in u)t&&u[l]==t[l]||T(n.style,l,u[l])}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(f,"$1")),o=l.toLowerCase(),l=o in n||"onFocusOut"==l||"onFocusIn"==l?o.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?t?u.u=t.u:(u.u=c,n.addEventListener(l,r?a:s,r)):n.removeEventListener(l,r?a:s,r);else{if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u))}}function F(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=c++;else if(u.t<t.u)return;return t(l.event?l.event(u):u)}}}function O(n,u,t,i,r,o,e,f,c,s){var a,h,p,y,v,_,m,b,S,C,M,$,P,A,H,L,T,j=u.type;if(null!=u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),o=[f=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof j)try{if(b=u.props,S="prototype"in j&&j.prototype.render,C=(a=j.contextType)&&i[a.__c],M=a?C?C.props.value:a.__:i,t.__c?m=(h=u.__c=t.__c).__=h.__E:(S?u.__c=h=new j(b,M):(u.__c=h=new x(b,M),h.constructor=j,h.render=D),C&&C.sub(h),h.props=b,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),S&&null==h.__s&&(h.__s=h.state),S&&null!=j.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d({},h.__s)),d(h.__s,j.getDerivedStateFromProps(b,h.__s))),y=h.props,v=h.state,h.__v=u,p)S&&null==j.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),S&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(S&&null==j.getDerivedStateFromProps&&b!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)||u.__v==t.__v){for(u.__v!=t.__v&&(h.props=b,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u)}),$=0;$<h._sb.length;$++)h.__h.push(h._sb[$]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),S&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,v,_)})}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,P=l.__r,A=0,S){for(h.state=h.__s,h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[]}else do{h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=d(d({},i),h.getChildContext())),S&&!p&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(y,v)),L=a,null!=a&&a.type===k&&null==a.key&&(L=N(a.props.children)),f=I(n,w(L)?L:[L],u,t,i,r,o,e,f,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&e.push(h),m&&(h.__E=h.__=null)}catch(n){if(u.__v=null,c||null!=o)if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,u.__e=f}else for(T=o.length;T--;)g(o[T]);else u.__e=t.__e,u.__k=t.__k;l.__e(n,u,t)}else null==o&&u.__v==t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=V(t.__e,u,t,i,r,o,e,c,s);return(a=l.diffed)&&a(u),128&u.__u?void 0:f}function z(n,u,t){for(var i=0;i<t.length;i++)q(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function N(n){return"object"!=typeof n||null==n||n.__b&&n.__b>0?n:w(n)?n.map(N):d({},n)}function V(u,t,i,r,o,e,f,c,s){var a,h,y,v,d,_,m,b=i.props,k=t.props,x=t.type;if("svg"==x?o="http://www.w3.org/2000/svg":"math"==x?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((d=e[a])&&"setAttribute"in d==!!x&&(x?d.localName==x:3==d.nodeType)){u=d,e[a]=null;break}if(null==u){if(null==x)return document.createTextNode(k);u=document.createElementNS(o,x,k.is&&k),c&&(l.__m&&l.__m(t,e),c=!1),e=null}if(null==x)b===k||c&&u.data==k||(u.data=k);else{if(e=e&&n.call(u.childNodes),b=i.props||p,!c&&null!=e)for(b={},a=0;a<u.attributes.length;a++)b[(d=u.attributes[a]).name]=d.value;for(a in b)if(d=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)y=d;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;j(u,a,null,d,o)}for(a in k)d=k[a],"children"==a?v=d:"dangerouslySetInnerHTML"==a?h=d:"value"==a?_=d:"checked"==a?m=d:c&&"function"!=typeof d||b[a]===d||j(u,a,d,b[a],o);if(h)c||y&&(h.__html==y.__html||h.__html==u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(y&&(u.innerHTML=""),I("template"==t.type?u.content:u,w(v)?v:[v],t,i,r,"foreignObject"==x?"http://www.w3.org/1999/xhtml":o,e,f,e?e[0]:i.__k&&S(i,0),c,s),null!=e)for(a=e.length;a--;)g(e[a]);c||(a="value","progress"==x&&null==_?u.removeAttribute("value"):null!=_&&(_!==u[a]||"progress"==x&&!_||"option"==x&&_!=b[a])&&j(u,a,_,b[a],o),a="checked",null!=m&&m!=u[a]&&j(u,a,m,b[a],o))}return u}function q(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u))}else n.current=u}catch(n){l.__e(n,t)}}function B(n,u,t){var i,r;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!=n.__e||q(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,u)}i.base=i.__P=null}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&B(i[r],u,t||"function"!=typeof n.type);t||g(n.__e),n.__c=n.__=n.__e=void 0}function D(n,l,u){return this.constructor(n,u)}function E(u,t,i){var r,o,e,f;t==document&&(t=document.documentElement),l.__&&l.__(u,t),o=(r="function"==typeof i)?null:i&&i.__k||t.__k,e=[],f=[],O(t,u=(!r&&i||t).__k=_(k,null,[u]),o||p,p,t.namespaceURI,!r&&i?[i]:o?null:t.firstChild?n.call(t.childNodes):null,e,!r&&i?i:o?o.__e:t.firstChild,r,f),z(e,u,f)}function G(n,l){E(n,l,G)}function J(l,u,t){var i,r,o,e,f=d({},l.props);for(o in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),u)"key"==o?i=u[o]:"ref"==o?r=u[o]:f[o]=null==u[o]&&null!=e?e[o]:u[o];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),m(l.type,f,i||l.key,r||l.ref,null)}function K(n){function l(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l.__c]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&u.forEach(function(n){n.__e=!0,M(n)})},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n)}}),n.children}return l.__c="__cC"+h++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l}n=y.slice,l={__e:function(n,l,u,t){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),o=i.__d),o)return i.__E=i}catch(l){n=l}throw n}},u=0,t=function(n){return null!=n&&null==n.constructor},x.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=d({},this.state),"function"==typeof n&&(n=n(d({},u),this.props)),n&&d(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},x.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},x.prototype.render=k,i=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},$.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=F(!1),a=F(!0),h=0;
|
|
13417
|
+
var n,l,u,t,i,r,o,e,f,c,s,a,h,p={},v=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,w=Array.isArray;function d(n,l){for(var u in l)n[u]=l[u];return n}function g(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function _(l,u,t){var i,r,o,e={};for(o in u)"key"==o?i=u[o]:"ref"==o?r=u[o]:e[o]=u[o];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps)void 0===e[o]&&(e[o]=l.defaultProps[o]);return m(l,e,i,r,null)}function m(n,t,i,r,o){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++u:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(e),e}function b(){return{current:null}}function k(n){return n.children}function x(n,l){this.props=n,this.context=l}function S(n,l){if(null==l)return n.__?S(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?S(n):null}function C(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return C(n)}}function M(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!$.__r++||r!=l.debounceRendering)&&((r=l.debounceRendering)||o)($)}function $(){for(var n,u,t,r,o,f,c,s=1;i.length;)i.length>s&&i.sort(e),n=i.shift(),s=i.length,n.__d&&(t=void 0,o=(r=(u=n).__v).__e,f=[],c=[],u.__P&&((t=d({},r)).__v=r.__v+1,l.vnode&&l.vnode(t),O(u.__P,t,r,u.__n,u.__P.namespaceURI,32&r.__u?[o]:null,f,null==o?S(r):o,!!(32&r.__u),c),t.__v=r.__v,t.__.__k[t.__i]=t,z(f,t,c),t.__e!=o&&C(t)));$.__r=0}function I(n,l,u,t,i,r,o,e,f,c,s){var a,h,y,w,d,g,_=t&&t.__k||v,m=l.length;for(f=P(u,l,_,f,m),a=0;a<m;a++)null!=(y=u.__k[a])&&(h=-1==y.__i?p:_[y.__i]||p,y.__i=a,g=O(n,y,h,i,r,o,e,f,c,s),w=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&q(h.ref,null,y),s.push(y.ref,y.__c||w,y)),null==d&&null!=w&&(d=w),4&y.__u||h.__k===y.__k?f=A(y,f,n):"function"==typeof y.type&&void 0!==g?f=g:w&&(f=w.nextSibling),y.__u&=-7);return u.__e=d,f}function P(n,l,u,t,i){var r,o,e,f,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?(f=r+h,(o=n.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?m(null,o,null,null,null):w(o)?m(k,{children:o},null,null,null):null==o.constructor&&o.__b>0?m(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=n,o.__b=n.__b+1,e=null,-1!=(c=o.__i=L(o,u,f,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null==e.__v?(-1==c&&(i>s?h--:i<s&&h++),"function"!=typeof o.type&&(o.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,o.__u|=4))):n.__k[r]=null;if(a)for(r=0;r<s;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=S(e)),B(e,e));return t}function A(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=A(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!u.contains(l)&&(l=S(n)),u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8==l.nodeType);return l}function H(n,l){return l=l||[],null==n||"boolean"==typeof n||(w(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function L(n,l,u,t){var i,r,o=n.key,e=n.type,f=l[u];if(null===f&&null==n.key||f&&o==f.key&&e==f.type&&0==(2&f.__u))return u;if(t>(null!=f&&0==(2&f.__u)?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;){if(i>=0){if((f=l[i])&&0==(2&f.__u)&&o==f.key&&e==f.type)return i;i--}if(r<l.length){if((f=l[r])&&0==(2&f.__u)&&o==f.key&&e==f.type)return r;r++}}return-1}function T(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||y.test(l)?u:u+"px"}function j(n,l,u,t,i){var r,o;n:if("style"==l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T(n.style,l,"");if(u)for(l in u)t&&u[l]==t[l]||T(n.style,l,u[l])}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(f,"$1")),o=l.toLowerCase(),l=o in n||"onFocusOut"==l||"onFocusIn"==l?o.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?t?u.u=t.u:(u.u=c,n.addEventListener(l,r?a:s,r)):n.removeEventListener(l,r?a:s,r);else{if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u))}}function F(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=c++;else if(u.t<t.u)return;return t(l.event?l.event(u):u)}}}function O(n,u,t,i,r,o,e,f,c,s){var a,h,p,v,y,_,m,b,S,C,M,$,P,A,H,L,T,j=u.type;if(null!=u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),o=[f=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof j)try{if(b=u.props,S="prototype"in j&&j.prototype.render,C=(a=j.contextType)&&i[a.__c],M=a?C?C.props.value:a.__:i,t.__c?m=(h=u.__c=t.__c).__=h.__E:(S?u.__c=h=new j(b,M):(u.__c=h=new x(b,M),h.constructor=j,h.render=D),C&&C.sub(h),h.props=b,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),S&&null==h.__s&&(h.__s=h.state),S&&null!=j.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d({},h.__s)),d(h.__s,j.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=u,p)S&&null==j.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),S&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(S&&null==j.getDerivedStateFromProps&&b!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)||u.__v==t.__v){for(u.__v!=t.__v&&(h.props=b,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u)}),$=0;$<h._sb.length;$++)h.__h.push(h._sb[$]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),S&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,_)})}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,P=l.__r,A=0,S){for(h.state=h.__s,h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[]}else do{h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=d(d({},i),h.getChildContext())),S&&!p&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(v,y)),L=a,null!=a&&a.type===k&&null==a.key&&(L=N(a.props.children)),f=I(n,w(L)?L:[L],u,t,i,r,o,e,f,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&e.push(h),m&&(h.__E=h.__=null)}catch(n){if(u.__v=null,c||null!=o)if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,u.__e=f}else for(T=o.length;T--;)g(o[T]);else u.__e=t.__e,u.__k=t.__k;l.__e(n,u,t)}else null==o&&u.__v==t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=V(t.__e,u,t,i,r,o,e,c,s);return(a=l.diffed)&&a(u),128&u.__u?void 0:f}function z(n,u,t){for(var i=0;i<t.length;i++)q(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function N(n){return"object"!=typeof n||null==n||n.__b&&n.__b>0?n:w(n)?n.map(N):d({},n)}function V(u,t,i,r,o,e,f,c,s){var a,h,v,y,d,_,m,b=i.props,k=t.props,x=t.type;if("svg"==x?o="http://www.w3.org/2000/svg":"math"==x?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((d=e[a])&&"setAttribute"in d==!!x&&(x?d.localName==x:3==d.nodeType)){u=d,e[a]=null;break}if(null==u){if(null==x)return document.createTextNode(k);u=document.createElementNS(o,x,k.is&&k),c&&(l.__m&&l.__m(t,e),c=!1),e=null}if(null==x)b===k||c&&u.data==k||(u.data=k);else{if(e=e&&n.call(u.childNodes),b=i.props||p,!c&&null!=e)for(b={},a=0;a<u.attributes.length;a++)b[(d=u.attributes[a]).name]=d.value;for(a in b)if(d=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)v=d;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;j(u,a,null,d,o)}for(a in k)d=k[a],"children"==a?y=d:"dangerouslySetInnerHTML"==a?h=d:"value"==a?_=d:"checked"==a?m=d:c&&"function"!=typeof d||b[a]===d||j(u,a,d,b[a],o);if(h)c||v&&(h.__html==v.__html||h.__html==u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(v&&(u.innerHTML=""),I("template"==t.type?u.content:u,w(y)?y:[y],t,i,r,"foreignObject"==x?"http://www.w3.org/1999/xhtml":o,e,f,e?e[0]:i.__k&&S(i,0),c,s),null!=e)for(a=e.length;a--;)g(e[a]);c||(a="value","progress"==x&&null==_?u.removeAttribute("value"):null!=_&&(_!==u[a]||"progress"==x&&!_||"option"==x&&_!=b[a])&&j(u,a,_,b[a],o),a="checked",null!=m&&m!=u[a]&&j(u,a,m,b[a],o))}return u}function q(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u))}else n.current=u}catch(n){l.__e(n,t)}}function B(n,u,t){var i,r;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!=n.__e||q(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,u)}i.base=i.__P=null}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&B(i[r],u,t||"function"!=typeof n.type);t||g(n.__e),n.__c=n.__=n.__e=void 0}function D(n,l,u){return this.constructor(n,u)}function E(u,t,i){var r,o,e,f;t==document&&(t=document.documentElement),l.__&&l.__(u,t),o=(r="function"==typeof i)?null:i&&i.__k||t.__k,e=[],f=[],O(t,u=(!r&&i||t).__k=_(k,null,[u]),o||p,p,t.namespaceURI,!r&&i?[i]:o?null:t.firstChild?n.call(t.childNodes):null,e,!r&&i?i:o?o.__e:t.firstChild,r,f),z(e,u,f)}function G(n,l){E(n,l,G)}function J(l,u,t){var i,r,o,e,f=d({},l.props);for(o in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),u)"key"==o?i=u[o]:"ref"==o?r=u[o]:f[o]=void 0===u[o]&&null!=e?e[o]:u[o];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),m(l.type,f,i||l.key,r||l.ref,null)}function K(n){function l(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l.__c]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&u.forEach(function(n){n.__e=!0,M(n)})},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n)}}),n.children}return l.__c="__cC"+h++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l}n=v.slice,l={__e:function(n,l,u,t){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),o=i.__d),o)return i.__E=i}catch(l){n=l}throw n}},u=0,t=function(n){return null!=n&&null==n.constructor},x.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=d({},this.state),"function"==typeof n&&(n=n(d({},u),this.props)),n&&d(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},x.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},x.prototype.render=k,i=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},$.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=F(!1),a=F(!0),h=0;
|
|
13349
13418
|
//# sourceMappingURL=preact.module.js.map
|
|
13350
13419
|
|
|
13351
13420
|
|
|
@@ -13512,6 +13581,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13512
13581
|
/* harmony export */ ReactSurveyElementsWrapper: () => (/* reexport safe */ _survey_react_ui_entries_react_ui_model__WEBPACK_IMPORTED_MODULE_1__.ReactSurveyElementsWrapper),
|
|
13513
13582
|
/* harmony export */ Scroll: () => (/* reexport safe */ _survey_react_ui_entries_react_ui_model__WEBPACK_IMPORTED_MODULE_1__.Scroll),
|
|
13514
13583
|
/* harmony export */ Skeleton: () => (/* reexport safe */ _survey_react_ui_entries_react_ui_model__WEBPACK_IMPORTED_MODULE_1__.Skeleton),
|
|
13584
|
+
/* harmony export */ SliderLabelItem: () => (/* reexport safe */ _survey_react_ui_entries_react_ui_model__WEBPACK_IMPORTED_MODULE_1__.SliderLabelItem),
|
|
13515
13585
|
/* harmony export */ StrictMode: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.StrictMode),
|
|
13516
13586
|
/* harmony export */ Survey: () => (/* reexport safe */ _survey_react_ui_entries_react_ui_model__WEBPACK_IMPORTED_MODULE_1__.Survey),
|
|
13517
13587
|
/* harmony export */ SurveyActionBar: () => (/* reexport safe */ _survey_react_ui_entries_react_ui_model__WEBPACK_IMPORTED_MODULE_1__.SurveyActionBar),
|
|
@@ -13715,7 +13785,7 @@ var preact = react__WEBPACK_IMPORTED_MODULE_0__;
|
|
|
13715
13785
|
|
|
13716
13786
|
|
|
13717
13787
|
|
|
13718
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_2__.checkLibraryVersion)("".concat("2.
|
|
13788
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_2__.checkLibraryVersion)("".concat("2.2.0"), "survey-js-ui");
|
|
13719
13789
|
|
|
13720
13790
|
})();
|
|
13721
13791
|
|