survey-js-ui 3.2.1 → 3.2.3
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/README.md +1 -1
- package/fesm/survey-js-ui.mjs +232 -52
- package/fesm/survey-js-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-js-ui.js +234 -51
- package/survey-js-ui.js.map +1 -1
- package/survey-js-ui.min.js +2 -2
- package/typings/survey-react-ui/entries/react-ui-model.d.ts +3 -0
- package/typings/survey-react-ui/src/boolean-switch.d.ts +1 -0
- package/typings/survey-react-ui/src/components/matrix/header-sort-button.d.ts +10 -0
- package/typings/survey-react-ui/src/components/popup/popup.d.ts +1 -1
- package/typings/survey-react-ui/src/components/records-sort-dialog.d.ts +12 -0
- package/typings/survey-react-ui/src/components/sort-bar-level.d.ts +12 -0
- package/typings/survey-react-ui/src/imagepicker.d.ts +2 -0
- package/typings/survey-react-ui/src/page.d.ts +1 -1
- package/typings/survey-react-ui/src/panel-base.d.ts +1 -0
- package/typings/survey-react-ui/src/reactquestion_checkbox.d.ts +3 -0
- package/typings/survey-react-ui/src/reactquestion_matrixdropdown.d.ts +3 -0
- package/typings/survey-react-ui/src/reactquestion_matrixdropdownbase.d.ts +3 -0
- package/typings/survey-react-ui/src/reactquestion_matrixdynamic.d.ts +3 -3
- package/typings/survey-react-ui/src/reactquestion_paneldynamic.d.ts +2 -0
- package/typings/survey-react-ui/src/reactquestion_radiogroup.d.ts +1 -0
- package/typings/survey-react-ui/src/reactquestion_selectbase.d.ts +1 -0
package/fesm/survey-js-ui.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v3.2.
|
|
2
|
+
* surveyjs - Survey JavaScript library v3.2.3
|
|
3
3
|
* Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -644,7 +644,7 @@ class SurveyActionBarItem extends SurveyElementBase {
|
|
|
644
644
|
const className = this.item.getActionBarItemCss();
|
|
645
645
|
const buttonContent = this.renderButtonContent();
|
|
646
646
|
const tabIndex = this.item.disableTabStop ? -1 : undefined;
|
|
647
|
-
const button = attachKey2click(_$1("button", { ref: this.ref, className: className, type: "button", disabled: this.item.disabled, onMouseDown: (args) => this.item.doMouseDown(args), onFocus: (args) => this.item.doFocus(args), onClick: (args) => this.item.doAction(args), title: this.item.getTooltip(), tabIndex: tabIndex, "aria-checked": this.item.ariaChecked, "aria-expanded": this.item.ariaExpanded, "aria-controls": this.item.ariaControls, "aria-labelledby": this.item.ariaLabelledBy, role: this.item.ariaRole }, buttonContent), this.item, { processEsc: false });
|
|
647
|
+
const button = attachKey2click(_$1("button", { ref: this.ref, className: className, type: "button", disabled: this.item.disabled, onMouseDown: (args) => this.item.doMouseDown(args), onFocus: (args) => this.item.doFocus(args), onClick: (args) => this.item.doAction(args), title: this.item.getTooltip(), tabIndex: tabIndex, "aria-checked": this.item.ariaChecked, "aria-expanded": this.item.ariaExpanded, "aria-controls": this.item.ariaControls, "aria-labelledby": this.item.ariaLabelledBy, "aria-label": this.item.ariaLabel, role: this.item.ariaRole }, buttonContent), this.item, { processEsc: false });
|
|
648
648
|
return button;
|
|
649
649
|
}
|
|
650
650
|
componentDidMount() {
|
|
@@ -775,7 +775,7 @@ class TitleActions extends x$3 {
|
|
|
775
775
|
}
|
|
776
776
|
render() {
|
|
777
777
|
const titleContent = _$1(TitleContent, { element: this.element, cssClasses: this.cssClasses });
|
|
778
|
-
if (!this.element.
|
|
778
|
+
if (!this.element.hasVisibleTitleActions)
|
|
779
779
|
return titleContent;
|
|
780
780
|
return (_$1("div", { className: "sv-title-actions" },
|
|
781
781
|
_$1("span", { className: "sv-title-actions__title" }, titleContent),
|
|
@@ -1091,6 +1091,9 @@ class PopupContainer extends SurveyElementBase {
|
|
|
1091
1091
|
_$1(SurveyActionBar, { model: popuModel.footerToolbar })));
|
|
1092
1092
|
}
|
|
1093
1093
|
render() {
|
|
1094
|
+
// Stays mounted and subscribed to the view model: Popup does not re-render when the popup opens.
|
|
1095
|
+
if (!this.model.hasBeenShown)
|
|
1096
|
+
return null;
|
|
1094
1097
|
const container = this.renderContainer(this.model);
|
|
1095
1098
|
const className = new CssClassBuilder()
|
|
1096
1099
|
.append("sv-popup")
|
|
@@ -1115,6 +1118,9 @@ class PopupDropdownContainer extends PopupContainer {
|
|
|
1115
1118
|
const popupDropdownModel = popupModel;
|
|
1116
1119
|
if (!popupDropdownModel || !popupDropdownModel.showHeader)
|
|
1117
1120
|
return null;
|
|
1121
|
+
// An overlay's header is its close button, not the pointer.
|
|
1122
|
+
if (popupDropdownModel.isOverlay)
|
|
1123
|
+
return super.renderHeaderPopup(popupModel);
|
|
1118
1124
|
return (_$1("span", { style: {
|
|
1119
1125
|
left: popupDropdownModel.pointerTarget.left,
|
|
1120
1126
|
top: popupDropdownModel.pointerTarget.top,
|
|
@@ -1209,10 +1215,14 @@ function requireIconsV2 () {
|
|
|
1209
1215
|
|
|
1210
1216
|
var add_24x24 = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M15.75 12C15.75 12.41 15.41 12.75 15 12.75H12.75V15C12.75 15.41 12.41 15.75 12 15.75C11.59 15.75 11.25 15.41 11.25 15V12.75H9C8.59 12.75 8.25 12.41 8.25 12C8.25 11.59 8.59 11.25 9 11.25H11.25V9C11.25 8.59 11.59 8.25 12 8.25C12.41 8.25 12.75 8.59 12.75 9V11.25H15C15.41 11.25 15.75 11.59 15.75 12ZM21.75 12C21.75 17.38 17.38 21.75 12 21.75C6.62 21.75 2.25 17.38 2.25 12C2.25 6.62 6.62 2.25 12 2.25C17.38 2.25 21.75 6.62 21.75 12ZM20.25 12C20.25 7.45 16.55 3.75 12 3.75C7.45 3.75 3.75 7.45 3.75 12C3.75 16.55 7.45 20.25 12 20.25C16.55 20.25 20.25 16.55 20.25 12Z\"/></svg>";
|
|
1211
1217
|
|
|
1218
|
+
var arrowdown_16x16 = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12.5275 8.53L8.5275 12.53C8.4575 12.6 8.3775 12.65 8.2875 12.69C8.1975 12.73 8.0975 12.75 7.9975 12.75C7.8975 12.75 7.7975 12.73 7.7075 12.69C7.6175 12.65 7.5375 12.6 7.4675 12.53L3.4675 8.53C3.1775 8.24 3.1775 7.76 3.4675 7.47C3.7575 7.18 4.2375 7.18 4.5275 7.47L7.2475 10.19V3C7.2475 2.59 7.5875 2.25 7.9975 2.25C8.4075 2.25 8.7475 2.59 8.7475 3V10.19L11.4675 7.47C11.7575 7.18 12.2375 7.18 12.5275 7.47C12.8175 7.76 12.8175 8.24 12.5275 8.53Z\"/></svg>";
|
|
1219
|
+
|
|
1212
1220
|
var arrowleft_16x16 = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M14.7475 7.9975C14.7475 8.4075 14.4075 8.7475 13.9975 8.7475H3.8075L7.5275 12.4675C7.8175 12.7575 7.8175 13.2375 7.5275 13.5275C7.3775 13.6775 7.1875 13.7475 6.9975 13.7475C6.8075 13.7475 6.6175 13.6775 6.4675 13.5275L1.4675 8.5275C1.1775 8.2375 1.1775 7.7575 1.4675 7.4675L6.4675 2.4675C6.7575 2.1775 7.2375 2.1775 7.5275 2.4675C7.8175 2.7575 7.8175 3.2375 7.5275 3.5275L3.8075 7.2475H13.9975C14.4075 7.2475 14.7475 7.5875 14.7475 7.9975Z\"/></svg>";
|
|
1213
1221
|
|
|
1214
1222
|
var arrowright_16x16 = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M14.53 8.5275L9.53 13.5275C9.38 13.6775 9.19 13.7475 9 13.7475C8.81 13.7475 8.62 13.6775 8.47 13.5275C8.18 13.2375 8.18 12.7575 8.47 12.4675L12.19 8.7475H2C1.59 8.7475 1.25 8.4075 1.25 7.9975C1.25 7.5875 1.59 7.2475 2 7.2475H12.19L8.47 3.5275C8.18 3.2375 8.18 2.7575 8.47 2.4675C8.76 2.1775 9.24 2.1775 9.53 2.4675L14.53 7.4675C14.82 7.7575 14.82 8.2375 14.53 8.5275Z\"/></svg>";
|
|
1215
1223
|
|
|
1224
|
+
var arrowup_16x16 = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12.5275 7.53C12.3775 7.68 12.1875 7.75 11.9975 7.75C11.8075 7.75 11.6175 7.68 11.4675 7.53L8.7475 4.81V12C8.7475 12.41 8.4075 12.75 7.9975 12.75C7.5875 12.75 7.2475 12.41 7.2475 12V4.81L4.5275 7.53C4.2375 7.82 3.7575 7.82 3.4675 7.53C3.1775 7.24 3.1775 6.76 3.4675 6.47L7.4675 2.47C7.5375 2.4 7.6175 2.35 7.7075 2.31C7.8875 2.23 8.0975 2.23 8.2775 2.31C8.3675 2.35 8.4475 2.4 8.5175 2.47L12.5175 6.47C12.8075 6.76 12.8075 7.24 12.5175 7.53H12.5275Z\"/></svg>";
|
|
1225
|
+
|
|
1216
1226
|
var camera_24x24 = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M19.19 4.25H17.12C16.72 4.25 16.35 4.03 16.17 3.67C15.73 2.8 14.86 2.25 13.88 2.25H10.12C9.14 2.25 8.27 2.79 7.83 3.67C7.65 4.03 7.29 4.25 6.88 4.25H4.81C3.4 4.25 2.25 5.4 2.25 6.81V18.19C2.25 19.6 3.4 20.75 4.81 20.75H19.19C20.6 20.75 21.75 19.6 21.75 18.19V6.81C21.75 5.4 20.6 4.25 19.19 4.25ZM20.25 18.19C20.25 18.77 19.78 19.25 19.19 19.25H4.81C4.23 19.25 3.75 18.78 3.75 18.19V6.81C3.75 6.23 4.22 5.75 4.81 5.75H6.88C7.86 5.75 8.73 5.21 9.17 4.33C9.35 3.97 9.71 3.75 10.12 3.75H13.88C14.28 3.75 14.65 3.97 14.83 4.33C15.27 5.2 16.14 5.75 17.12 5.75H19.19C19.77 5.75 20.25 6.22 20.25 6.81V18.19ZM12 6.25C8.83 6.25 6.25 8.83 6.25 12C6.25 15.17 8.83 17.75 12 17.75C15.17 17.75 17.75 15.17 17.75 12C17.75 8.83 15.17 6.25 12 6.25ZM12 16.25C9.66 16.25 7.75 14.34 7.75 12C7.75 9.66 9.66 7.75 12 7.75C14.34 7.75 16.25 9.66 16.25 12C16.25 14.34 14.34 16.25 12 16.25ZM14.75 12C14.75 13.52 13.52 14.75 12 14.75C11.59 14.75 11.25 14.41 11.25 14C11.25 13.59 11.59 13.25 12 13.25C12.69 13.25 13.25 12.69 13.25 12C13.25 11.59 13.59 11.25 14 11.25C14.41 11.25 14.75 11.59 14.75 12Z\"/></svg>";
|
|
1217
1227
|
|
|
1218
1228
|
var camera_32x32 = "<svg viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M25 7.25H22.19C21.73 7.25 21.31 7 21.09 6.59L20.89 6.22C20.23 5.01 18.97 4.25 17.59 4.25H14.41C13.03 4.25 11.77 5 11.11 6.22L10.91 6.6C10.69 7 10.27 7.26 9.81 7.26H7C4.93 7.26 3.25 8.94 3.25 11.01V24.01C3.25 26.08 4.93 27.76 7 27.76H25C27.07 27.76 28.75 26.08 28.75 24.01V11C28.75 8.93 27.07 7.25 25 7.25ZM27.25 24C27.25 25.24 26.24 26.25 25 26.25H7C5.76 26.25 4.75 25.24 4.75 24V11C4.75 9.76 5.76 8.75 7 8.75H9.81C10.82 8.75 11.75 8.2 12.23 7.31L12.43 6.94C12.82 6.21 13.58 5.76 14.41 5.76H17.59C18.42 5.76 19.18 6.21 19.57 6.94L19.77 7.31C20.25 8.2 21.18 8.76 22.19 8.76H25C26.24 8.76 27.25 9.77 27.25 11.01V24.01V24ZM16 10.25C12.28 10.25 9.25 13.28 9.25 17C9.25 20.72 12.28 23.75 16 23.75C19.72 23.75 22.75 20.72 22.75 17C22.75 13.28 19.72 10.25 16 10.25ZM16 22.25C13.11 22.25 10.75 19.89 10.75 17C10.75 14.11 13.11 11.75 16 11.75C18.89 11.75 21.25 14.11 21.25 17C21.25 19.89 18.89 22.25 16 22.25ZM19.75 17C19.75 19.07 18.07 20.75 16 20.75C15.59 20.75 15.25 20.41 15.25 20C15.25 19.59 15.59 19.25 16 19.25C17.24 19.25 18.25 18.24 18.25 17C18.25 16.59 18.59 16.25 19 16.25C19.41 16.25 19.75 16.59 19.75 17Z\"/></svg>";
|
|
@@ -1223,9 +1233,17 @@ function requireIconsV2 () {
|
|
|
1223
1233
|
|
|
1224
1234
|
var check_24x24 = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M19.5275 7.5275L9.5275 17.5275C9.3775 17.6775 9.1875 17.7475 8.9975 17.7475C8.8075 17.7475 8.6175 17.6775 8.4675 17.5275L4.4675 13.5275C4.1775 13.2375 4.1775 12.7575 4.4675 12.4675C4.7575 12.1775 5.2375 12.1775 5.5275 12.4675L8.9975 15.9375L18.4675 6.4675C18.7575 6.1775 19.2375 6.1775 19.5275 6.4675C19.8175 6.7575 19.8175 7.2375 19.5275 7.5275Z\"/></svg>";
|
|
1225
1235
|
|
|
1236
|
+
var chevrondoubleleft_16x16 = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M6.96875 3.46909C7.25875 3.17909 7.73832 3.17909 8.02832 3.46909C8.31832 3.75909 8.31832 4.23866 8.02832 4.52866L4.55859 7.99838L8.02832 11.4691C8.31832 11.7591 8.31832 12.2387 8.02832 12.5287C7.7383 12.8185 7.25869 12.8186 6.96875 12.5287L2.96875 8.52866C2.81875 8.37866 2.74902 8.18838 2.74902 7.99838C2.7491 7.80856 2.81896 7.61898 2.96875 7.46909L6.96875 3.46909Z\"/><path d=\"M10.9688 3.46909C11.2587 3.17909 11.7383 3.17909 12.0283 3.46909C12.3183 3.75909 12.3183 4.23866 12.0283 4.52866L8.55859 7.99838L12.0283 11.4691C12.3183 11.7591 12.3183 12.2387 12.0283 12.5287C11.7383 12.8185 11.2587 12.8186 10.9688 12.5287L6.96875 8.52866C6.81875 8.37866 6.74902 8.18838 6.74902 7.99838C6.7491 7.80856 6.81896 7.61898 6.96875 7.46909L10.9688 3.46909Z\"/></svg>";
|
|
1237
|
+
|
|
1238
|
+
var chevrondoubleright_16x16 = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M3.96642 3.46903C4.25642 3.17903 4.73599 3.17903 5.02599 3.46903L9.02599 7.46903C9.17588 7.61892 9.2466 7.80846 9.2467 7.99832C9.2467 8.18832 9.17599 8.3786 9.02599 8.5286L5.02599 12.5286C4.73599 12.8185 4.2564 12.8186 3.96642 12.5286C3.67645 12.2386 3.6765 11.759 3.96642 11.469L7.43615 7.99832L3.96642 4.5286C3.67645 4.23862 3.6765 3.75903 3.96642 3.46903Z\"/><path d=\"M7.96642 3.46903C8.25642 3.17903 8.73599 3.17903 9.02599 3.46903L13.026 7.46903C13.1759 7.61892 13.2466 7.80846 13.2467 7.99832C13.2467 8.18832 13.176 8.3786 13.026 8.5286L9.02599 12.5286C8.73599 12.8185 8.2564 12.8186 7.96642 12.5286C7.67645 12.2386 7.6765 11.759 7.96642 11.469L11.4361 7.99832L7.96642 4.5286C7.67645 4.23862 7.6765 3.75903 7.96642 3.46903Z\"/></svg>";
|
|
1239
|
+
|
|
1240
|
+
var chevrondown_16x16 = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M11.5275 7.5275L8.5275 10.5275C8.3775 10.6775 8.1875 10.7475 7.9975 10.7475C7.8075 10.7475 7.6175 10.6775 7.4675 10.5275L4.4675 7.5275C4.1775 7.2375 4.1775 6.7575 4.4675 6.4675C4.7575 6.1775 5.2375 6.1775 5.5275 6.4675L7.9975 8.9375L10.4675 6.4675C10.7575 6.1775 11.2375 6.1775 11.5275 6.4675C11.8175 6.7575 11.8175 7.2375 11.5275 7.5275Z\"/></svg>";
|
|
1241
|
+
|
|
1226
1242
|
var chevrondown_24x24 = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M16.5275 10.5275L12.5275 14.5275C12.3775 14.6775 12.1875 14.7475 11.9975 14.7475C11.8075 14.7475 11.6175 14.6775 11.4675 14.5275L7.4675 10.5275C7.1775 10.2375 7.1775 9.7575 7.4675 9.4675C7.7575 9.1775 8.2375 9.1775 8.5275 9.4675L11.9975 12.9375L15.4675 9.4675C15.7575 9.1775 16.2375 9.1775 16.5275 9.4675C16.8175 9.7575 16.8175 10.2375 16.5275 10.5275Z\"/></svg>";
|
|
1227
1243
|
|
|
1228
|
-
var
|
|
1244
|
+
var chevronleft_16x16 = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M8.7687 12.5287L4.7687 8.52872C4.6187 8.37872 4.5487 8.18872 4.5487 7.99872C4.5487 7.80872 4.6187 7.61872 4.7687 7.46872L8.7687 3.46872C9.0587 3.17872 9.5387 3.17872 9.8287 3.46872C10.1187 3.75872 10.1187 4.23872 9.8287 4.52872L6.3587 7.99872L9.8287 11.4687C10.1187 11.7587 10.1187 12.2387 9.8287 12.5287C9.5387 12.8187 9.0587 12.8187 8.7687 12.5287Z\"/></svg>";
|
|
1245
|
+
|
|
1246
|
+
var chevronright_16x16 = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7.22629 3.46872L11.2263 7.46872C11.3763 7.61872 11.4463 7.80872 11.4463 7.99872C11.4463 8.18872 11.3763 8.37872 11.2263 8.52872L7.22629 12.5287C6.93629 12.8187 6.45629 12.8187 6.16629 12.5287C5.87629 12.2387 5.87629 11.7587 6.16629 11.4687L9.63629 7.99872L6.16629 4.52872C5.87629 4.23872 5.87629 3.75872 6.16629 3.46872C6.45629 3.17872 6.93629 3.17872 7.22629 3.46872Z\"/></svg>";
|
|
1229
1247
|
|
|
1230
1248
|
var chevronright_24x24 = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M11.2263 7.46872L15.2263 11.4687C15.3763 11.6187 15.4463 11.8087 15.4463 11.9987C15.4463 12.1887 15.3763 12.3787 15.2263 12.5287L11.2263 16.5287C10.9363 16.8187 10.4563 16.8187 10.1663 16.5287C9.87629 16.2387 9.87629 15.7587 10.1663 15.4687L13.6363 11.9987L10.1663 8.52872C9.87629 8.23872 9.87629 7.75872 10.1663 7.46872C10.4563 7.17872 10.9363 7.17872 11.2263 7.46872Z\"/></svg>";
|
|
1231
1249
|
|
|
@@ -1279,6 +1297,8 @@ function requireIconsV2 () {
|
|
|
1279
1297
|
|
|
1280
1298
|
var noimage_48x48 = "<svg viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M30.4975 14.2475C28.7075 14.2475 27.2475 15.7075 27.2475 17.4975C27.2475 19.2875 28.7075 20.7475 30.4975 20.7475C32.2875 20.7475 33.7475 19.2875 33.7475 17.4975C33.7475 15.7075 32.2875 14.2475 30.4975 14.2475ZM30.4975 19.2475C29.5375 19.2475 28.7475 18.4575 28.7475 17.4975C28.7475 16.5375 29.5375 15.7475 30.4975 15.7475C31.4575 15.7475 32.2475 16.5375 32.2475 17.4975C32.2475 18.4575 31.4575 19.2475 30.4975 19.2475ZM13.5175 11.2175C13.4375 10.8075 13.7075 10.4175 14.1175 10.3375C14.4275 10.2775 14.7175 10.2475 14.9975 10.2475H32.9975C35.6175 10.2475 37.7475 12.3775 37.7475 14.9975V32.9975C37.7475 33.2775 37.7175 33.5675 37.6575 33.8775C37.5875 34.2375 37.2775 34.4875 36.9175 34.4875C36.8675 34.4875 36.8275 34.4875 36.7775 34.4775C36.3675 34.3975 36.1075 34.0075 36.1775 33.5975C36.2175 33.3775 36.2375 33.1775 36.2375 32.9975V14.9975C36.2375 13.2075 34.7775 11.7475 32.9875 11.7475H14.9975C14.8075 11.7475 14.6175 11.7675 14.3975 11.8075C13.9875 11.8875 13.5975 11.6175 13.5175 11.2075V11.2175ZM34.4775 36.7775C34.5575 37.1875 34.2875 37.5775 33.8775 37.6575C33.5675 37.7175 33.2775 37.7475 32.9975 37.7475H14.9975C12.3775 37.7475 10.2475 35.6175 10.2475 32.9975V14.9975C10.2475 14.7175 10.2775 14.4275 10.3375 14.1175C10.4175 13.7075 10.8075 13.4375 11.2175 13.5175C11.6275 13.5975 11.8875 13.9875 11.8175 14.3975C11.7775 14.6175 11.7575 14.8175 11.7575 14.9975V32.9975C11.7575 34.7875 13.2175 36.2475 15.0075 36.2475H33.0075C33.1975 36.2475 33.3875 36.2275 33.6075 36.1875C34.0075 36.1075 34.4075 36.3775 34.4875 36.7875L34.4775 36.7775ZM15.8275 31.7975C15.6975 31.9375 15.7575 32.0875 15.7775 32.1175C15.8175 32.1975 15.8675 32.2475 15.9375 32.2475H29.8175C30.2275 32.2475 30.5675 32.5875 30.5675 32.9975C30.5675 33.4075 30.2275 33.7475 29.8175 33.7475H15.9375C15.2675 33.7475 14.6775 33.3475 14.3975 32.7175C14.1075 32.0575 14.2375 31.2975 14.7275 30.7775L19.7275 25.2775C20.0475 24.9275 20.5075 24.7175 20.9875 24.7075C21.4875 24.7275 21.9375 24.8875 22.2675 25.2275L25.4675 28.4775C25.7575 28.7675 25.7575 29.2475 25.4675 29.5375C25.1675 29.8275 24.6975 29.8275 24.4075 29.5375L21.2075 26.2875C21.1475 26.2175 21.0675 26.1875 21.0275 26.2075C20.9875 26.2075 20.9075 26.2175 20.8475 26.2875L15.8375 31.7975H15.8275ZM38.5275 38.5275C38.3775 38.6775 38.1875 38.7475 37.9975 38.7475C37.8075 38.7475 37.6175 38.6775 37.4675 38.5275L9.4675 10.5275C9.1775 10.2375 9.1775 9.7575 9.4675 9.4675C9.7575 9.1775 10.2375 9.1775 10.5275 9.4675L38.5275 37.4675C38.8175 37.7575 38.8175 38.2375 38.5275 38.5275Z\"/></svg>";
|
|
1281
1299
|
|
|
1300
|
+
var plus_16x16 = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M8 2.25C8.41 2.25 8.75 2.59 8.75 3V7.25H13C13.41 7.25 13.75 7.59 13.75 8C13.75 8.41 13.41 8.75 13 8.75H8.75V13C8.75 13.41 8.41 13.75 8 13.75C7.59 13.75 7.25 13.41 7.25 13V8.75H3C2.59 8.75 2.25 8.41 2.25 8C2.25 7.59 2.59 7.25 3 7.25H7.25V3C7.25 2.59 7.59 2.25 8 2.25Z\"/></svg>";
|
|
1301
|
+
|
|
1282
1302
|
var radio_16x16 = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\"><circle cx=\"8\" cy=\"8\" r=\"4\"/></svg>";
|
|
1283
1303
|
|
|
1284
1304
|
var ranking_arrows = "<svg viewBox=\"0 0 10 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M10 5L5 0L0 5H4V9H6V5H10Z\"/><path d=\"M6 19V15H4V19H0L5 24L10 19H6Z\"/></svg>";
|
|
@@ -1323,6 +1343,8 @@ function requireIconsV2 () {
|
|
|
1323
1343
|
|
|
1324
1344
|
var smiley_rate9_24x24 = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z\"/></svg>";
|
|
1325
1345
|
|
|
1346
|
+
var sort_16x16 = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M5.28284 7.47861C5.37477 7.51396 5.45962 7.57053 5.53033 7.64124L8.35876 10.4697C8.64867 10.7596 8.64867 11.2404 8.35876 11.5303C8.06884 11.8202 7.58801 11.8202 7.2981 11.5303L5.74953 9.98177L5.74953 13.8284C5.74953 14.0406 5.66468 14.2244 5.53033 14.3588C5.39598 14.4931 5.21213 14.578 5 14.578C4.58988 14.578 4.25047 14.2385 4.25047 13.8284L4.25047 9.98177L2.7019 11.5303C2.41199 11.8202 1.93116 11.8202 1.64124 11.5303C1.35133 11.2404 1.35133 10.7596 1.64124 10.4697L4.46967 7.64124C4.54038 7.57053 4.61816 7.52103 4.71716 7.47861C4.901 7.4079 5.10607 7.40083 5.29698 7.47861H5.28284ZM13.296 4.47467L11.7475 6.02323L11.7475 2.17657C11.7475 1.76645 11.4081 1.42704 10.9979 1.42704C10.5878 1.42704 10.2484 1.76645 10.2484 2.17657V6.02323L8.69983 4.47467C8.40992 4.18476 7.92909 4.18476 7.63917 4.47467C7.34926 4.76458 7.34926 5.24542 7.63917 5.53533L10.4676 8.36376C10.5383 8.43447 10.6161 8.48397 10.7151 8.52639C10.8989 8.5971 11.104 8.60417 11.2949 8.52639C11.3868 8.49104 11.4717 8.43447 11.5424 8.36376L14.3708 5.53533C14.6607 5.24542 14.6607 4.76458 14.3708 4.47467C14.0809 4.18476 13.6001 4.18476 13.3102 4.47467H13.296Z\"/></svg>";
|
|
1347
|
+
|
|
1326
1348
|
const icons = {
|
|
1327
1349
|
"modernbooleancheckchecked": modernbooleancheckchecked,
|
|
1328
1350
|
"modernbooleancheckind": modernbooleancheckind,
|
|
@@ -1333,14 +1355,20 @@ function requireIconsV2 () {
|
|
|
1333
1355
|
"removefile": removefile,
|
|
1334
1356
|
"timercircle": timercircle,
|
|
1335
1357
|
"add-24x24": add_24x24,
|
|
1358
|
+
"arrowdown-16x16": arrowdown_16x16,
|
|
1336
1359
|
"arrowleft-16x16": arrowleft_16x16,
|
|
1337
1360
|
"arrowright-16x16": arrowright_16x16,
|
|
1361
|
+
"arrowup-16x16": arrowup_16x16,
|
|
1338
1362
|
"camera-24x24": camera_24x24,
|
|
1339
1363
|
"camera-32x32": camera_32x32,
|
|
1340
1364
|
"cancel-24x24": cancel_24x24,
|
|
1341
1365
|
"check-16x16": check_16x16,
|
|
1342
1366
|
"check-24x24": check_24x24,
|
|
1367
|
+
"chevrondoubleleft-16x16": chevrondoubleleft_16x16,
|
|
1368
|
+
"chevrondoubleright-16x16": chevrondoubleright_16x16,
|
|
1369
|
+
"chevrondown-16x16": chevrondown_16x16,
|
|
1343
1370
|
"chevrondown-24x24": chevrondown_24x24,
|
|
1371
|
+
"chevronleft-16x16": chevronleft_16x16,
|
|
1344
1372
|
"chevronright-16x16": chevronright_16x16,
|
|
1345
1373
|
"chevronright-24x24": chevronright_24x24,
|
|
1346
1374
|
"clear-16x16": clear_16x16,
|
|
@@ -1368,6 +1396,7 @@ function requireIconsV2 () {
|
|
|
1368
1396
|
"more-24x24": more_24x24,
|
|
1369
1397
|
"navmenu-24x24": navmenu_24x24,
|
|
1370
1398
|
"noimage-48x48": noimage_48x48,
|
|
1399
|
+
"plus-16x16": plus_16x16,
|
|
1371
1400
|
"radio-16x16": radio_16x16,
|
|
1372
1401
|
"ranking-arrows": ranking_arrows,
|
|
1373
1402
|
"rankingdot-16x16": rankingdot_16x16,
|
|
@@ -1390,6 +1419,7 @@ function requireIconsV2 () {
|
|
|
1390
1419
|
"smiley-rate7-24x24": smiley_rate7_24x24,
|
|
1391
1420
|
"smiley-rate8-24x24": smiley_rate8_24x24,
|
|
1392
1421
|
"smiley-rate9-24x24": smiley_rate9_24x24,
|
|
1422
|
+
"sort-16x16": sort_16x16,
|
|
1393
1423
|
};
|
|
1394
1424
|
|
|
1395
1425
|
exports.icons = icons;
|
|
@@ -1950,8 +1980,11 @@ class SurveyPanelBase extends SurveyElementBase {
|
|
|
1950
1980
|
get css() {
|
|
1951
1981
|
return this.getCss();
|
|
1952
1982
|
}
|
|
1983
|
+
getPanelFromProps(props) {
|
|
1984
|
+
return this.props.element || this.props.question;
|
|
1985
|
+
}
|
|
1953
1986
|
get panelBase() {
|
|
1954
|
-
return this.
|
|
1987
|
+
return this.getPanelFromProps(this.props);
|
|
1955
1988
|
}
|
|
1956
1989
|
getPanelBase() {
|
|
1957
1990
|
return this.props.element || this.props.question;
|
|
@@ -1972,6 +2005,9 @@ class SurveyPanelBase extends SurveyElementBase {
|
|
|
1972
2005
|
if (!!el) {
|
|
1973
2006
|
el.removeAttribute("data-rendered");
|
|
1974
2007
|
}
|
|
2008
|
+
if (this.panelBase) {
|
|
2009
|
+
this.panelBase.beforeDestroy();
|
|
2010
|
+
}
|
|
1975
2011
|
}
|
|
1976
2012
|
componentDidUpdate(prevProps, prevState) {
|
|
1977
2013
|
super.componentDidUpdate(prevProps, prevState);
|
|
@@ -1980,6 +2016,10 @@ class SurveyPanelBase extends SurveyElementBase {
|
|
|
1980
2016
|
!!this.survey.activePage &&
|
|
1981
2017
|
prevProps.page.id === this.survey.activePage.id)
|
|
1982
2018
|
return;
|
|
2019
|
+
const prevPanel = this.getPanelFromProps(prevProps);
|
|
2020
|
+
if (prevPanel) {
|
|
2021
|
+
prevPanel.beforeDestroy();
|
|
2022
|
+
}
|
|
1983
2023
|
this.doAfterRender();
|
|
1984
2024
|
}
|
|
1985
2025
|
doAfterRender() {
|
|
@@ -2219,7 +2259,7 @@ class SurveyQuestionSigleInputSummary extends ReactSurveyElement {
|
|
|
2219
2259
|
renderNoItems() {
|
|
2220
2260
|
const q = this.summary.question;
|
|
2221
2261
|
const placeholder = ReactElementFactory.Instance.createElement("sv-placeholder-" + q.getTemplate(), { cssClasses: this.css, question: q });
|
|
2222
|
-
return placeholder || _$1("div", null, this.renderLocString(this.summary.noEntry));
|
|
2262
|
+
return _$1("div", { className: this.css.summaryPlaceholder }, placeholder || _$1("div", null, this.renderLocString(this.summary.noEntry)));
|
|
2223
2263
|
}
|
|
2224
2264
|
renderItem(item, index) {
|
|
2225
2265
|
const btnEdit = item.btnEdit ?
|
|
@@ -2595,8 +2635,8 @@ class SurveyPage extends SurveyPanelBase {
|
|
|
2595
2635
|
constructor(props) {
|
|
2596
2636
|
super(props);
|
|
2597
2637
|
}
|
|
2598
|
-
|
|
2599
|
-
return
|
|
2638
|
+
getPanelFromProps(props) {
|
|
2639
|
+
return props.page;
|
|
2600
2640
|
}
|
|
2601
2641
|
get page() {
|
|
2602
2642
|
return this.panelBase;
|
|
@@ -2649,17 +2689,13 @@ class SurveyPanel extends SurveyPanelBase {
|
|
|
2649
2689
|
paddingInlineStart: this.panel.innerPaddingLeft
|
|
2650
2690
|
? `calc(${panelPaddingHorizontal} + ${this.panel.innerPaddingLeft})`
|
|
2651
2691
|
: this.panel.innerPaddingLeft,
|
|
2652
|
-
// paddingInlineEnd: this.panel.innerPaddingLeft ? panelPaddingHorizontal : undefined,
|
|
2653
|
-
display: this.panel.renderedIsExpanded ? undefined : "none",
|
|
2654
2692
|
};
|
|
2655
|
-
|
|
2656
|
-
let
|
|
2693
|
+
const className = this.panelBase.cssClasses.panel.content;
|
|
2694
|
+
let expandableContent = null;
|
|
2657
2695
|
if (this.panel.renderedIsExpanded) {
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
content = this.renderContent(style, rows, className);
|
|
2662
|
-
bottom = this.renderBottom();
|
|
2696
|
+
expandableContent = _$1("div", { className: this.panel.cssClasses.panel.expandableContent },
|
|
2697
|
+
this.renderContent(style, this.renderRows(this.panelBase.cssClasses), className),
|
|
2698
|
+
this.renderBottom());
|
|
2663
2699
|
}
|
|
2664
2700
|
const focusIn = () => {
|
|
2665
2701
|
if (this.panelBase)
|
|
@@ -2669,8 +2705,7 @@ class SurveyPanel extends SurveyPanelBase {
|
|
|
2669
2705
|
this.panel.showErrorsAbovePanel ? errors : null,
|
|
2670
2706
|
header,
|
|
2671
2707
|
this.panel.showErrorsAbovePanel ? null : errors,
|
|
2672
|
-
|
|
2673
|
-
bottom));
|
|
2708
|
+
expandableContent));
|
|
2674
2709
|
}
|
|
2675
2710
|
renderHeader() {
|
|
2676
2711
|
if (!this.panel.hasTitle && !this.panel.hasDescription) {
|
|
@@ -2846,13 +2881,14 @@ class SurveyQuestionSelectbase extends SurveyQuestionElementBase {
|
|
|
2846
2881
|
}
|
|
2847
2882
|
renderElement() {
|
|
2848
2883
|
var cssClasses = this.question.cssClasses;
|
|
2849
|
-
return (_$1("fieldset", { className: this.question.getSelectBaseRootCss(), ref: (fieldset) => (this.setControl(fieldset)), role: this.question.a11y_input_ariaRole, "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 },
|
|
2884
|
+
return (_$1("fieldset", { className: this.question.getSelectBaseRootCss(), ref: (fieldset) => (this.setControl(fieldset)), onKeyDown: (event) => this.handleRootKeyDown(event), role: this.question.a11y_input_ariaRole, "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 },
|
|
2850
2885
|
this.renderHeader(),
|
|
2851
2886
|
this.question.hasColumns
|
|
2852
2887
|
? this.getColumnedBody(cssClasses)
|
|
2853
2888
|
: this.getBody(cssClasses),
|
|
2854
2889
|
this.getFooter()));
|
|
2855
2890
|
}
|
|
2891
|
+
handleRootKeyDown(_event) { }
|
|
2856
2892
|
renderHeader() { return null; }
|
|
2857
2893
|
getFooter() {
|
|
2858
2894
|
if (this.question.hasFootItems) {
|
|
@@ -3018,6 +3054,10 @@ class SurveyQuestionCheckbox extends SurveyQuestionSelectbase {
|
|
|
3018
3054
|
get question() {
|
|
3019
3055
|
return this.questionBase;
|
|
3020
3056
|
}
|
|
3057
|
+
handleRootKeyDown(event) {
|
|
3058
|
+
var _a, _b;
|
|
3059
|
+
(_b = (_a = this.question).onKeyDown) === null || _b === void 0 ? void 0 : _b.call(_a, event);
|
|
3060
|
+
}
|
|
3021
3061
|
renderHeader() {
|
|
3022
3062
|
return _$1(k$3, null,
|
|
3023
3063
|
_$1("legend", { className: "sv-hidden" }, this.question.locTitle.renderedHtml),
|
|
@@ -3033,6 +3073,12 @@ class SurveyQuestionCheckbox extends SurveyQuestionSelectbase {
|
|
|
3033
3073
|
class SurveyQuestionCheckboxItem extends SurveyQuestionSelectBaseItem {
|
|
3034
3074
|
constructor(props) {
|
|
3035
3075
|
super(props);
|
|
3076
|
+
this.handleOnKeyDown = (event) => {
|
|
3077
|
+
this.question.onChoiceKeyDown(event.nativeEvent);
|
|
3078
|
+
};
|
|
3079
|
+
this.handleOnBlur = (event) => {
|
|
3080
|
+
this.question.onChoiceFocusOut(event.nativeEvent);
|
|
3081
|
+
};
|
|
3036
3082
|
}
|
|
3037
3083
|
doOnItemChange(event) {
|
|
3038
3084
|
this.question.clickItemHandler(this.item, event.target.checked);
|
|
@@ -3049,9 +3095,11 @@ class SurveyQuestionCheckboxItem extends SurveyQuestionSelectBaseItem {
|
|
|
3049
3095
|
const itemClass = this.question.getItemClass(this.item);
|
|
3050
3096
|
const labelClass = this.question.getLabelClass(this.item);
|
|
3051
3097
|
const itemLabel = !this.hideCaption ? _$1("span", { className: this.cssClasses.controlLabel, id: this.question.getItemLabelId(this.item), "aria-hidden": this.question.isItemLabelAriaHidden ? "true" : undefined }, this.renderLocString(this.item.locText, this.textStyle)) : null;
|
|
3098
|
+
const shortcutKey = this.question.getChoiceKeyBadge(this.item);
|
|
3052
3099
|
return (_$1("div", { className: itemClass, role: "presentation", ref: this.rootRef },
|
|
3053
3100
|
_$1("label", { className: labelClass },
|
|
3054
|
-
_$1("
|
|
3101
|
+
shortcutKey ? _$1("span", { className: this.question.getItemShortcutKeyClass(this.item), "aria-hidden": "true" }, shortcutKey) : null,
|
|
3102
|
+
_$1("input", { className: this.cssClasses.itemControl, type: "checkbox", name: this.question.name + this.item.id, value: this.item.value, id: id, style: this.inputStyle, disabled: !this.question.getItemEnabled(this.item), readOnly: this.question.isReadOnlyAttr, checked: isChecked, onChange: this.handleOnChange, onKeyDown: this.handleOnKeyDown, onBlur: this.handleOnBlur, required: this.question.hasRequiredError(), "aria-label": this.ariaLabel, "aria-labelledby": !this.ariaLabel && !this.hideCaption ? this.question.getItemLabelId(this.item) : undefined, "aria-keyshortcuts": this.question.getItemAriaKeyShortcuts(this.item) }),
|
|
3055
3103
|
this.cssClasses.materialDecorator ?
|
|
3056
3104
|
_$1("span", { className: this.cssClasses.materialDecorator, "aria-hidden": "true" }, this.question.itemSvgIcon ?
|
|
3057
3105
|
_$1("svg", { className: this.cssClasses.itemDecorator },
|
|
@@ -4141,6 +4189,10 @@ class SurveyQuestionRadioItem extends SurveyQuestionSelectBaseItem {
|
|
|
4141
4189
|
var _a, _b;
|
|
4142
4190
|
(_b = (_a = this.question).onKeyDown) === null || _b === void 0 ? void 0 : _b.call(_a, event);
|
|
4143
4191
|
};
|
|
4192
|
+
this.handleOnBlur = (event) => {
|
|
4193
|
+
var _a, _b;
|
|
4194
|
+
(_b = (_a = this.question).onChoiceFocusOut) === null || _b === void 0 ? void 0 : _b.call(_a, event.nativeEvent);
|
|
4195
|
+
};
|
|
4144
4196
|
this.handleOnMouseDown = this.handleOnMouseDown.bind(this);
|
|
4145
4197
|
}
|
|
4146
4198
|
getStateElement() {
|
|
@@ -4166,9 +4218,11 @@ class SurveyQuestionRadioItem extends SurveyQuestionSelectBaseItem {
|
|
|
4166
4218
|
var labelClass = this.question.getLabelClass(this.item);
|
|
4167
4219
|
var controlLabelClass = this.question.getControlLabelClass(this.item);
|
|
4168
4220
|
const itemLabel = !this.hideCaption ? _$1("span", { className: controlLabelClass, id: this.question.getItemLabelId(this.item), "aria-hidden": this.question.isItemLabelAriaHidden ? "true" : undefined }, this.renderLocString(this.item.locText, this.textStyle)) : null;
|
|
4221
|
+
const shortcutKey = this.question.getChoiceKeyBadge(this.item);
|
|
4169
4222
|
return (_$1("div", { className: itemClass, role: "presentation", ref: this.rootRef },
|
|
4170
4223
|
_$1("label", { onMouseDown: this.handleOnMouseDown, className: labelClass },
|
|
4171
|
-
_$1("
|
|
4224
|
+
shortcutKey ? _$1("span", { className: this.question.getItemShortcutKeyClass(this.item), "aria-hidden": "true" }, shortcutKey) : null,
|
|
4225
|
+
_$1("input", { "aria-errormessage": this.question.ariaErrormessage, className: this.cssClasses.itemControl, id: this.question.getItemId(this.item), type: "radio", name: this.question.questionName, checked: this.isChecked, value: this.item.value, disabled: !this.question.getItemEnabled(this.item), readOnly: this.question.isReadOnlyAttr, onChange: this.handleOnChange, onKeyDown: this.handleOnKeyDown, onBlur: this.handleOnBlur, "aria-label": this.ariaLabel, "aria-labelledby": !this.ariaLabel && !this.hideCaption ? this.question.getItemLabelId(this.item) : undefined, "aria-keyshortcuts": this.question.getItemAriaKeyShortcuts(this.item) }),
|
|
4172
4226
|
this.cssClasses.materialDecorator ?
|
|
4173
4227
|
_$1("span", { className: this.cssClasses.materialDecorator, "aria-hidden": "true" }, this.question.itemSvgIcon ?
|
|
4174
4228
|
_$1("svg", { className: this.cssClasses.itemDecorator },
|
|
@@ -4322,7 +4376,7 @@ class SurveyQuestionBooleanCheckbox extends SurveyQuestionBoolean {
|
|
|
4322
4376
|
const itemClass = this.question.getCheckboxItemCss();
|
|
4323
4377
|
const description = this.question.canRenderLabelDescription ?
|
|
4324
4378
|
SurveyElementBase.renderQuestionDescription(this.question) : null;
|
|
4325
|
-
return (_$1("div", { className: cssClasses.rootCheckbox },
|
|
4379
|
+
return (_$1("div", { className: cssClasses.rootCheckbox, onKeyDown: (event) => { var _a; return this.question.onKeyDown((_a = event.nativeEvent) !== null && _a !== void 0 ? _a : event); } },
|
|
4326
4380
|
_$1("div", { className: itemClass },
|
|
4327
4381
|
_$1("label", { className: cssClasses.checkboxLabel },
|
|
4328
4382
|
_$1("input", { ref: this.checkRef, type: "checkbox", name: this.question.name, value: this.question.booleanValue === null
|
|
@@ -4391,10 +4445,18 @@ class SurveyQuestionBooleanSwitch extends SurveyQuestionBoolean {
|
|
|
4391
4445
|
const button = attachKey2click(_$1("div", { className: buttonClass, tabIndex: 0, role: "checkbox", "aria-checked": this.question.booleanValue || false, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-errormessage": this.question.a11y_input_ariaErrormessage },
|
|
4392
4446
|
_$1("div", { className: cssClasses.switchThumb },
|
|
4393
4447
|
_$1("div", { className: cssClasses.switchThumbCircle }))), this.question, { processEsc: false });
|
|
4394
|
-
return (_$1("div", { className: cssClasses.rootSwitch, onClick: () => this.
|
|
4448
|
+
return (_$1("div", { className: cssClasses.rootSwitch, onClick: (event) => this.onRootClick(event) },
|
|
4395
4449
|
button,
|
|
4396
4450
|
this.question.isLabelRendered && (_$1("div", { className: cssClasses.switchCaption },
|
|
4397
|
-
_$1("div", { className: cssClasses.switchTitle, id: this.question.labelRenderedAriaID },
|
|
4451
|
+
_$1("div", { className: cssClasses.switchTitle, id: this.question.labelRenderedAriaID },
|
|
4452
|
+
_$1(TitleActions, { element: this.question, cssClasses: this.question.cssClasses }))))));
|
|
4453
|
+
}
|
|
4454
|
+
onRootClick(event) {
|
|
4455
|
+
var _a;
|
|
4456
|
+
const target = event.target;
|
|
4457
|
+
if ((_a = target === null || target === void 0 ? void 0 : target.closest) === null || _a === void 0 ? void 0 : _a.call(target, ".sd-action-bar"))
|
|
4458
|
+
return;
|
|
4459
|
+
this.question.booleanValue = !this.question.booleanValue;
|
|
4398
4460
|
}
|
|
4399
4461
|
}
|
|
4400
4462
|
ReactQuestionFactory.Instance.registerQuestion("sv-boolean-switch", (props) => {
|
|
@@ -4469,6 +4531,39 @@ ReactElementFactory.Instance.registerElement("sv-matrix-row", (props) => {
|
|
|
4469
4531
|
return _$1(MatrixRow, props);
|
|
4470
4532
|
});
|
|
4471
4533
|
|
|
4534
|
+
// The button a sortable column header holds: the title (content), the direction indicator and the
|
|
4535
|
+
// description of the whole sort. The cell computes every value; this only renders it.
|
|
4536
|
+
class SurveyMatrixHeaderSortButton extends ReactSurveyElement {
|
|
4537
|
+
constructor() {
|
|
4538
|
+
super(...arguments);
|
|
4539
|
+
this.onClick = (event) => {
|
|
4540
|
+
this.cell.toggleSort(event.shiftKey || event.ctrlKey || event.metaKey);
|
|
4541
|
+
};
|
|
4542
|
+
}
|
|
4543
|
+
get cell() {
|
|
4544
|
+
return this.props.cell;
|
|
4545
|
+
}
|
|
4546
|
+
get question() {
|
|
4547
|
+
return this.props.question;
|
|
4548
|
+
}
|
|
4549
|
+
// The sort, the loading state and the page move live on the question.
|
|
4550
|
+
getStateElement() {
|
|
4551
|
+
return this.question;
|
|
4552
|
+
}
|
|
4553
|
+
renderElement() {
|
|
4554
|
+
const cell = this.cell;
|
|
4555
|
+
const description = cell.sortDescription;
|
|
4556
|
+
return (_$1("button", { type: "button", className: cell.sortButtonCss, "aria-label": cell.sortAriaLabel, title: cell.sortTooltip, "aria-describedby": !!description ? cell.sortDescriptionId : undefined, "aria-disabled": !cell.canToggleSort ? "true" : undefined, onClick: this.onClick },
|
|
4557
|
+
_$1("span", { className: cell.sortTitleCss }, this.props.content),
|
|
4558
|
+
_$1("span", { className: cell.sortCss, "aria-hidden": "true" },
|
|
4559
|
+
_$1(SvgIcon, { iconName: cell.sortIconName, size: 16 })),
|
|
4560
|
+
!!description ? _$1("span", { id: cell.sortDescriptionId, className: "sv-visuallyhidden" }, description) : null));
|
|
4561
|
+
}
|
|
4562
|
+
}
|
|
4563
|
+
ReactElementFactory.Instance.registerElement("sv-matrix-header-sort-button", (props) => {
|
|
4564
|
+
return _$1(SurveyMatrixHeaderSortButton, props);
|
|
4565
|
+
});
|
|
4566
|
+
|
|
4472
4567
|
class SurveyQuestionMatrixTable extends SurveyElementBase {
|
|
4473
4568
|
get question() {
|
|
4474
4569
|
return this.props.question;
|
|
@@ -4493,7 +4588,9 @@ class SurveyQuestionMatrixTable extends SurveyElementBase {
|
|
|
4493
4588
|
const cells = table.headerRow.cells;
|
|
4494
4589
|
for (var i = 0; i < cells.length; i++) {
|
|
4495
4590
|
const cell = cells[i];
|
|
4496
|
-
|
|
4591
|
+
// Keyed by the cell id, which a column header keeps across the rebuild a sort makes: the
|
|
4592
|
+
// focused sort button stays the same DOM node.
|
|
4593
|
+
const key = cell.id;
|
|
4497
4594
|
const columnStyle = {};
|
|
4498
4595
|
if (!!cell.width) {
|
|
4499
4596
|
columnStyle.width = cell.width;
|
|
@@ -4503,7 +4600,7 @@ class SurveyQuestionMatrixTable extends SurveyElementBase {
|
|
|
4503
4600
|
}
|
|
4504
4601
|
const cellContent = this.renderCellContent(cell, "column-header", {});
|
|
4505
4602
|
const header = cell.hasTitle ?
|
|
4506
|
-
_$1("th", { className: cell.className, key: key, style: columnStyle },
|
|
4603
|
+
_$1("th", { className: cell.className, key: key, style: columnStyle, "aria-sort": cell.ariaSort },
|
|
4507
4604
|
" ",
|
|
4508
4605
|
cellContent,
|
|
4509
4606
|
" ")
|
|
@@ -4580,6 +4677,11 @@ class SurveyQuestionMatrixTable extends SurveyElementBase {
|
|
|
4580
4677
|
cellContent = (_$1(k$3, null,
|
|
4581
4678
|
str,
|
|
4582
4679
|
require));
|
|
4680
|
+
if (cell.isSortable) {
|
|
4681
|
+
cellContent = ReactElementFactory.Instance.createElement("sv-matrix-header-sort-button", {
|
|
4682
|
+
cell: cell, question: this.question, content: cellContent
|
|
4683
|
+
});
|
|
4684
|
+
}
|
|
4583
4685
|
}
|
|
4584
4686
|
if (cell.isActionsCell) {
|
|
4585
4687
|
cellContent = (ReactElementFactory.Instance.createElement("sv-matrixdynamic-actions-cell", {
|
|
@@ -4635,6 +4737,16 @@ class SurveyQuestionMatrixDropdownBase extends SurveyQuestionElementBase {
|
|
|
4635
4737
|
renderElement() {
|
|
4636
4738
|
return this.renderTableDiv();
|
|
4637
4739
|
}
|
|
4740
|
+
renderRecordsBar() {
|
|
4741
|
+
return ReactElementFactory.Instance.createElement("sv-action-bar", { model: this.question.recordsBar.pagerActions });
|
|
4742
|
+
}
|
|
4743
|
+
// The sort bar above the table, while the question header is not on top or on the left.
|
|
4744
|
+
renderSortBar() {
|
|
4745
|
+
if (this.question.sortBarLocation !== "top")
|
|
4746
|
+
return null;
|
|
4747
|
+
return _$1("div", { className: this.question.cssClasses.sortBarTop },
|
|
4748
|
+
_$1(SurveyActionBar, { model: this.question.recordsBar.sortActions }));
|
|
4749
|
+
}
|
|
4638
4750
|
renderTableDiv() {
|
|
4639
4751
|
return (_$1("div", { className: this.question.getTableWrapperCss(), ref: (root) => (this.setControl(root)) },
|
|
4640
4752
|
_$1(SurveyQuestionMatrixTable, { question: this.question, creator: this.creator, wrapCell: (cell, element, reason) => this.wrapCell(cell, element, reason) })));
|
|
@@ -4799,6 +4911,18 @@ class SurveyQuestionMatrixDropdown extends SurveyQuestionMatrixDropdownBase {
|
|
|
4799
4911
|
constructor(props) {
|
|
4800
4912
|
super(props);
|
|
4801
4913
|
}
|
|
4914
|
+
// A fragment: a matrix that does not page renders the table alone, as before the pager.
|
|
4915
|
+
renderElement() {
|
|
4916
|
+
return (_$1(k$3, null,
|
|
4917
|
+
this.renderSortBar(),
|
|
4918
|
+
this.renderTableDiv(),
|
|
4919
|
+
this.renderFooterBar()));
|
|
4920
|
+
}
|
|
4921
|
+
renderFooterBar() {
|
|
4922
|
+
if (this.question.showPager) {
|
|
4923
|
+
return _$1("div", { className: this.question.cssClasses.footerBar }, this.renderRecordsBar());
|
|
4924
|
+
}
|
|
4925
|
+
}
|
|
4802
4926
|
}
|
|
4803
4927
|
ReactQuestionFactory.Instance.registerQuestion("matrixdropdown", props => {
|
|
4804
4928
|
return _$1(SurveyQuestionMatrixDropdown, props);
|
|
@@ -4822,20 +4946,26 @@ class SurveyQuestionMatrixDynamic extends SurveyQuestionMatrixDropdownBase {
|
|
|
4822
4946
|
? this.renderTableDiv()
|
|
4823
4947
|
: this.renderNoRowsContent(cssClasses);
|
|
4824
4948
|
return (_$1("div", null,
|
|
4825
|
-
this.
|
|
4949
|
+
this.renderHeaderBar(),
|
|
4950
|
+
this.renderSortBar(),
|
|
4826
4951
|
mainDiv,
|
|
4827
|
-
this.
|
|
4952
|
+
this.renderFooterBar()));
|
|
4828
4953
|
}
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4954
|
+
// The footer exists only with the pager: the bottom toolbar and the pager in one row.
|
|
4955
|
+
// Without the pager the bottom toolbar is the next sibling of the table, as without paging.
|
|
4956
|
+
renderFooterBar() {
|
|
4957
|
+
if (this.matrix.getShowToolbar("bottom") || this.matrix.showPager) {
|
|
4958
|
+
return _$1("div", { className: this.matrix.cssClasses.footerBar },
|
|
4959
|
+
this.matrix.getShowToolbar("bottom") ? this.renderToolbar() : null,
|
|
4960
|
+
this.matrix.showPager ? this.renderRecordsBar() : null);
|
|
4961
|
+
}
|
|
4962
|
+
return null;
|
|
4833
4963
|
}
|
|
4834
|
-
|
|
4835
|
-
return
|
|
4964
|
+
renderToolbar() {
|
|
4965
|
+
return ReactElementFactory.Instance.createElement("sv-action-bar", { model: this.matrix.toolbar });
|
|
4836
4966
|
}
|
|
4837
|
-
|
|
4838
|
-
return this.
|
|
4967
|
+
renderHeaderBar() {
|
|
4968
|
+
return this.matrix.getShowToolbar("top") ? _$1("div", { className: this.matrix.cssClasses.headerBar }, this.renderToolbar()) : null;
|
|
4839
4969
|
}
|
|
4840
4970
|
renderNoRowsContent(cssClasses) {
|
|
4841
4971
|
return ReactElementFactory.Instance.createElement("sv-placeholder-matrixdynamic", { cssClasses: cssClasses, question: this.matrix });
|
|
@@ -4853,7 +4983,7 @@ class SurveyQuestionMatrixDynamicPlaceholder extends ReactSurveyElement {
|
|
|
4853
4983
|
const matrix = this.props.question;
|
|
4854
4984
|
const text = this.renderLocString(matrix.locNoRowsText);
|
|
4855
4985
|
const textDiv = _$1("div", { className: cssClasses.noRowsText }, text);
|
|
4856
|
-
const toolbar = matrix.
|
|
4986
|
+
const toolbar = matrix.getShowPlaceholderToolbar() ? ReactElementFactory.Instance.createElement("sv-action-bar", { model: matrix.toolbar }) : null;
|
|
4857
4987
|
return (_$1("div", { className: cssClasses.noRowsSection },
|
|
4858
4988
|
textDiv,
|
|
4859
4989
|
toolbar));
|
|
@@ -4907,26 +5037,35 @@ class SurveyQuestionPanelDynamic extends SurveyQuestionElementBase {
|
|
|
4907
5037
|
return (_$1("div", { className: cssClasses.root },
|
|
4908
5038
|
this.question.hasTabbedMenu ? _$1("div", { className: this.question.getTabsContainerCss() },
|
|
4909
5039
|
_$1(SurveyActionBar, { model: this.question.tabbedMenu })) : null,
|
|
5040
|
+
this.renderSortBar(),
|
|
4910
5041
|
noEntriesPlaceholder,
|
|
4911
5042
|
rangeTop,
|
|
4912
5043
|
_$1("div", { className: this.question.cssClasses.panelsContainer }, panels),
|
|
4913
5044
|
navigation));
|
|
4914
5045
|
}
|
|
5046
|
+
// The sort bar above the panels, while the question header is not on top or on the left.
|
|
5047
|
+
renderSortBar() {
|
|
5048
|
+
if (this.question.sortBarLocation !== "top")
|
|
5049
|
+
return null;
|
|
5050
|
+
return _$1("div", { className: this.question.cssClasses.sortBarTop },
|
|
5051
|
+
_$1(SurveyActionBar, { model: this.question.recordsBar.sortActions }));
|
|
5052
|
+
}
|
|
5053
|
+
// The records bar in the footer: the pager.
|
|
5054
|
+
renderRecordsBar() {
|
|
5055
|
+
return ReactElementFactory.Instance.createElement("sv-action-bar", { model: this.question.recordsBar.pagerActions });
|
|
5056
|
+
}
|
|
4915
5057
|
renderRange() {
|
|
4916
5058
|
return (_$1("div", { className: this.question.cssClasses.progress },
|
|
4917
5059
|
_$1("div", { className: this.question.cssClasses.progressBar, style: { width: this.question.progress }, role: "progressbar", "aria-label": this.question.progressBarAriaLabel })));
|
|
4918
5060
|
}
|
|
4919
5061
|
renderNavigator() {
|
|
4920
|
-
if (!this.question.
|
|
5062
|
+
if (!this.question.showFooter)
|
|
4921
5063
|
return null;
|
|
4922
|
-
const range = this.question.
|
|
4923
|
-
|
|
4924
|
-
return null;
|
|
4925
|
-
return (_$1("div", { className: this.question.cssClasses.footer },
|
|
4926
|
-
_$1("hr", { className: this.question.cssClasses.separator }),
|
|
5064
|
+
const range = this.question.showFooterProgress ? this.renderRange() : null;
|
|
5065
|
+
return (_$1("div", { className: this.question.cssClasses.footerBar },
|
|
4927
5066
|
range,
|
|
4928
|
-
this.question.
|
|
4929
|
-
|
|
5067
|
+
this.question.showFooterButtons ? (_$1(SurveyActionBar, { model: this.question.footerToolbar })) : null,
|
|
5068
|
+
this.question.showPager ? this.renderRecordsBar() : null));
|
|
4930
5069
|
}
|
|
4931
5070
|
renderPlaceholder(cssClasses) {
|
|
4932
5071
|
if (this.question.getShowNoEntriesPlaceholder())
|
|
@@ -4977,7 +5116,7 @@ class SurveyQuestionPanelDynamicPlaceholder extends ReactSurveyElement {
|
|
|
4977
5116
|
const question = this.props.question;
|
|
4978
5117
|
return (_$1("div", { className: cssClasses.noEntriesPlaceholder },
|
|
4979
5118
|
_$1("span", null, this.renderLocString(question.locNoEntriesText)),
|
|
4980
|
-
_$1(SurveyActionBar, { model:
|
|
5119
|
+
question.getShowPlaceholderToolbar() ? _$1(SurveyActionBar, { model: question.footerToolbar }) : null));
|
|
4981
5120
|
}
|
|
4982
5121
|
}
|
|
4983
5122
|
ReactElementFactory.Instance.registerElement("sv-placeholder-paneldynamic", (props) => { return _$1(SurveyQuestionPanelDynamicPlaceholder, props); });
|
|
@@ -5527,7 +5666,7 @@ class SurveyQuestionImagePicker extends SurveyQuestionElementBase {
|
|
|
5527
5666
|
}
|
|
5528
5667
|
renderElement() {
|
|
5529
5668
|
var cssClasses = this.question.cssClasses;
|
|
5530
|
-
return (_$1("fieldset", { className: this.question.getSelectBaseRootCss(), style: this.question.getContainerStyle() },
|
|
5669
|
+
return (_$1("fieldset", { className: this.question.getSelectBaseRootCss(), style: this.question.getContainerStyle(), onKeyDown: (event) => { var _a, _b; return (_b = (_a = this.question).onKeyDown) === null || _b === void 0 ? void 0 : _b.call(_a, event); } },
|
|
5531
5670
|
_$1("legend", { className: "sv-hidden" }, this.question.locTitle.renderedHtml),
|
|
5532
5671
|
this.question.hasColumns ? this.getColumns(cssClasses) : this.getItems(cssClasses)));
|
|
5533
5672
|
}
|
|
@@ -5562,6 +5701,8 @@ class SurveyQuestionImagePickerItem extends ReactSurveyElement {
|
|
|
5562
5701
|
constructor(props) {
|
|
5563
5702
|
super(props);
|
|
5564
5703
|
this.handleOnChange = this.handleOnChange.bind(this);
|
|
5704
|
+
this.handleOnKeyDown = this.handleOnKeyDown.bind(this);
|
|
5705
|
+
this.handleOnBlur = this.handleOnBlur.bind(this);
|
|
5565
5706
|
}
|
|
5566
5707
|
getStateElement() {
|
|
5567
5708
|
return this.item;
|
|
@@ -5592,6 +5733,12 @@ class SurveyQuestionImagePickerItem extends ReactSurveyElement {
|
|
|
5592
5733
|
get question() {
|
|
5593
5734
|
return this.props.question;
|
|
5594
5735
|
}
|
|
5736
|
+
handleOnKeyDown(event) {
|
|
5737
|
+
this.question.onChoiceKeyDown(event.nativeEvent);
|
|
5738
|
+
}
|
|
5739
|
+
handleOnBlur(event) {
|
|
5740
|
+
this.question.onChoiceFocusOut(event.nativeEvent);
|
|
5741
|
+
}
|
|
5595
5742
|
handleOnChange(event) {
|
|
5596
5743
|
if (this.question.isReadOnlyAttr)
|
|
5597
5744
|
return;
|
|
@@ -5639,10 +5786,11 @@ class SurveyQuestionImagePickerItem extends ReactSurveyElement {
|
|
|
5639
5786
|
null));
|
|
5640
5787
|
}
|
|
5641
5788
|
const renderedItem = (_$1("div", { className: itemClass },
|
|
5642
|
-
_$1("label", { className: cssClasses.label },
|
|
5643
|
-
_$1("input", { className: cssClasses.itemControl, id: this.question.getItemId(item), type: this.question.inputType, name: this.question.questionName, checked: isChecked, value: item.value, disabled: !this.question.getItemEnabled(item), readOnly: this.question.isReadOnlyAttr, onChange: this.handleOnChange, required: this.question.inputRequiredAttribute, "aria-label": item.locText.renderedHtml, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage }),
|
|
5789
|
+
_$1("label", { className: cssClasses.label, onMouseDown: () => this.question.onMouseDown() },
|
|
5790
|
+
_$1("input", { className: cssClasses.itemControl, id: this.question.getItemId(item), type: this.question.inputType, name: this.question.questionName, checked: isChecked, value: item.value, disabled: !this.question.getItemEnabled(item), readOnly: this.question.isReadOnlyAttr, onChange: this.handleOnChange, onKeyDown: this.handleOnKeyDown, onBlur: this.handleOnBlur, required: this.question.inputRequiredAttribute, "aria-label": item.locText.renderedHtml, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, "aria-keyshortcuts": this.question.getItemAriaKeyShortcuts(item) }),
|
|
5644
5791
|
_$1("div", { className: this.question.cssClasses.itemDecorator },
|
|
5645
5792
|
_$1("div", { className: this.question.cssClasses.imageContainer },
|
|
5793
|
+
this.question.getChoiceKeyBadge(item) ? _$1("span", { className: this.question.getItemShortcutKeyClass(item), "aria-hidden": "true" }, this.question.getChoiceKeyBadge(item)) : null,
|
|
5646
5794
|
!!this.question.cssClasses.checkedItemDecorator ?
|
|
5647
5795
|
_$1("span", { className: this.question.cssClasses.checkedItemDecorator, "aria-hidden": "true" }, !!this.question.cssClasses.checkedItemSvgIconId ? _$1(SvgIcon, { size: "auto", className: this.question.cssClasses.checkedItemSvgIcon, iconName: this.question.cssClasses.checkedItemSvgIconId }) : null) : null,
|
|
5648
5796
|
control),
|
|
@@ -5963,6 +6111,38 @@ ReactElementFactory.Instance.registerElement("sv-action-bar-item-dropdown", (pro
|
|
|
5963
6111
|
return _$1(SurveyActionBarItemDropdown, props);
|
|
5964
6112
|
});
|
|
5965
6113
|
|
|
6114
|
+
// One level of the sort bar: an item of the bar that holds the level's own action bar (field, direction, remove).
|
|
6115
|
+
class SurveySortBarLevel extends SurveyElementBase {
|
|
6116
|
+
get item() {
|
|
6117
|
+
return this.props.item;
|
|
6118
|
+
}
|
|
6119
|
+
getStateElement() {
|
|
6120
|
+
return this.item;
|
|
6121
|
+
}
|
|
6122
|
+
renderElement() {
|
|
6123
|
+
return ReactElementFactory.Instance.createElement("sv-action-bar", { model: this.item.data });
|
|
6124
|
+
}
|
|
6125
|
+
}
|
|
6126
|
+
ReactElementFactory.Instance.registerElement("sv-sort-bar-level", (props) => {
|
|
6127
|
+
return _$1(SurveySortBarLevel, props);
|
|
6128
|
+
});
|
|
6129
|
+
|
|
6130
|
+
// The content of the "Sort by" dialog: one action bar per row (field, direction, remove).
|
|
6131
|
+
class SurveyRecordsSortDialog extends SurveyElementBase {
|
|
6132
|
+
get model() {
|
|
6133
|
+
return this.props.model;
|
|
6134
|
+
}
|
|
6135
|
+
getStateElement() {
|
|
6136
|
+
return this.model;
|
|
6137
|
+
}
|
|
6138
|
+
renderElement() {
|
|
6139
|
+
return _$1("div", { className: this.model.rootCss }, this.model.rows.map((row) => _$1(k$3, { key: row.uniqueId }, ReactElementFactory.Instance.createElement("sv-action-bar", { model: row }))));
|
|
6140
|
+
}
|
|
6141
|
+
}
|
|
6142
|
+
ReactElementFactory.Instance.registerElement("sv-records-sort-dialog", (props) => {
|
|
6143
|
+
return _$1(SurveyRecordsSortDialog, props);
|
|
6144
|
+
});
|
|
6145
|
+
|
|
5966
6146
|
class LogoImage extends x$3 {
|
|
5967
6147
|
constructor(props) {
|
|
5968
6148
|
super(props);
|
|
@@ -6284,7 +6464,7 @@ SurveyModel.prototype["render"] = function (element = null) {
|
|
|
6284
6464
|
}
|
|
6285
6465
|
};
|
|
6286
6466
|
const preact = React;
|
|
6287
|
-
checkLibraryVersion(`${"3.2.
|
|
6467
|
+
checkLibraryVersion(`${"3.2.3"}`, "survey-js-ui");
|
|
6288
6468
|
|
|
6289
|
-
export { CharacterCounterComponent, O as Children, x$3 as Component, ComponentsContainer, k$3 as Fragment, Header, HeaderCell, HeaderMobile, List, ListItemContent, ListItemGroup, LoadingIndicatorComponent, LogoImage, MatrixRow, NotifierComponent, Popup, PopupModal, PopupSurvey, N as PureComponent, QuestionErrorComponent, RatingDropdownItem, RatingItem, RatingItemSmiley, RatingItemStar, ReactElementFactory, ReactQuestionFactory, ReactSurveyElement, ReactSurveyElementsWrapper, Scroll, Skeleton, SliderLabelItem, Cn as StrictMode, Survey, SurveyActionBar, SurveyActionBarItemDropdown, SurveyActionBarSeparator, SurveyElementBase, SurveyElementErrors, SurveyFileChooseButton, SurveyFileItem, SurveyFilePreview, SurveyFlowPanel, SurveyHeader, SurveyLocStringEditor, SurveyLocStringViewer, SurveyNavigationBase, SurveyPage, SurveyPanel, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestion, SurveyQuestionAndErrorsCell, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionBooleanSwitch, SurveyQuestionButtonGroup, SurveyQuestionButtonGroupDropdown, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionComment, SurveyQuestionCommentItem, SurveyQuestionComposite, SurveyQuestionCustom, SurveyQuestionDropdown, SurveyQuestionDropdownBase, SurveyQuestionDropdownSelect, SurveyQuestionElementBase, SurveyQuestionEmpty, SurveyQuestionExpression, SurveyQuestionFile, SurveyQuestionHtml, SurveyQuestionImage, SurveyQuestionImageMap, SurveyQuestionImagePicker, SurveyQuestionMatrix, SurveyQuestionMatrixCell, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionMatrixRow, SurveyQuestionMultipleText, SurveyQuestionOptionItem, SurveyQuestionPanelDynamic, SurveyQuestionPanelDynamicProgressText, SurveyQuestionRadioItem, SurveyQuestionRadiogroup, SurveyQuestionRanking, SurveyQuestionRankingItem, SurveyQuestionRankingItemContent, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionSignaturePad, SurveyQuestionSlider, SurveyQuestionTagbox, SurveyQuestionTagboxItem, SurveyQuestionText, SurveyRow, SurveyTimerPanel, SurveyWindow, P as Suspense, B as SuspenseList, SvgBundleComponent, SvgIcon, TagboxFilterString, TitleActions, TitleElement, attachKey2click, _n as cloneElement, Q$2 as createContext, _$1 as createElement, dn as createFactory, $ as createPortal, b$1 as createRef, Sn as findDOMNode, En as flushSync, D as forwardRef, tn as hydrate, pn as isFragment, yn as isMemo, mn as isValidElement, z as lazy, M as memo, preact, nn as render, renderPopupSurvey, renderSurvey, R as startTransition, bn as unmountComponentAtNode, gn as unstable_batchedUpdates, q$2 as useCallback, x$2 as useContext, P$2 as useDebugValue, w as useDeferredValue, y as useEffect, g$2 as useId, F$2 as useImperativeHandle, I as useInsertionEffect, _ as useLayoutEffect, T$2 as useMemo, h as useReducer, A$2 as useRef, d as useState, C as useSyncExternalStore, k as useTransition, vn as version };
|
|
6469
|
+
export { CharacterCounterComponent, O as Children, x$3 as Component, ComponentsContainer, k$3 as Fragment, Header, HeaderCell, HeaderMobile, List, ListItemContent, ListItemGroup, LoadingIndicatorComponent, LogoImage, MatrixRow, NotifierComponent, Popup, PopupModal, PopupSurvey, N as PureComponent, QuestionErrorComponent, RatingDropdownItem, RatingItem, RatingItemSmiley, RatingItemStar, ReactElementFactory, ReactQuestionFactory, ReactSurveyElement, ReactSurveyElementsWrapper, Scroll, Skeleton, SliderLabelItem, Cn as StrictMode, Survey, SurveyActionBar, SurveyActionBarItemDropdown, SurveyActionBarSeparator, SurveyElementBase, SurveyElementErrors, SurveyFileChooseButton, SurveyFileItem, SurveyFilePreview, SurveyFlowPanel, SurveyHeader, SurveyLocStringEditor, SurveyLocStringViewer, SurveyMatrixHeaderSortButton, SurveyNavigationBase, SurveyPage, SurveyPanel, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestion, SurveyQuestionAndErrorsCell, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionBooleanSwitch, SurveyQuestionButtonGroup, SurveyQuestionButtonGroupDropdown, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionComment, SurveyQuestionCommentItem, SurveyQuestionComposite, SurveyQuestionCustom, SurveyQuestionDropdown, SurveyQuestionDropdownBase, SurveyQuestionDropdownSelect, SurveyQuestionElementBase, SurveyQuestionEmpty, SurveyQuestionExpression, SurveyQuestionFile, SurveyQuestionHtml, SurveyQuestionImage, SurveyQuestionImageMap, SurveyQuestionImagePicker, SurveyQuestionMatrix, SurveyQuestionMatrixCell, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionMatrixRow, SurveyQuestionMultipleText, SurveyQuestionOptionItem, SurveyQuestionPanelDynamic, SurveyQuestionPanelDynamicProgressText, SurveyQuestionRadioItem, SurveyQuestionRadiogroup, SurveyQuestionRanking, SurveyQuestionRankingItem, SurveyQuestionRankingItemContent, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionSignaturePad, SurveyQuestionSlider, SurveyQuestionTagbox, SurveyQuestionTagboxItem, SurveyQuestionText, SurveyRecordsSortDialog, SurveyRow, SurveySortBarLevel, SurveyTimerPanel, SurveyWindow, P as Suspense, B as SuspenseList, SvgBundleComponent, SvgIcon, TagboxFilterString, TitleActions, TitleElement, attachKey2click, _n as cloneElement, Q$2 as createContext, _$1 as createElement, dn as createFactory, $ as createPortal, b$1 as createRef, Sn as findDOMNode, En as flushSync, D as forwardRef, tn as hydrate, pn as isFragment, yn as isMemo, mn as isValidElement, z as lazy, M as memo, preact, nn as render, renderPopupSurvey, renderSurvey, R as startTransition, bn as unmountComponentAtNode, gn as unstable_batchedUpdates, q$2 as useCallback, x$2 as useContext, P$2 as useDebugValue, w as useDeferredValue, y as useEffect, g$2 as useId, F$2 as useImperativeHandle, I as useInsertionEffect, _ as useLayoutEffect, T$2 as useMemo, h as useReducer, A$2 as useRef, d as useState, C as useSyncExternalStore, k as useTransition, vn as version };
|
|
6290
6470
|
//# sourceMappingURL=survey-js-ui.mjs.map
|