survey-react 1.9.90 → 1.9.91
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/defaultV2.css +683 -694
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +255 -251
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +47 -47
- package/survey.css.map +1 -1
- package/survey.min.css +2 -2
- package/survey.react.d.ts +47 -0
- package/survey.react.js +317 -128
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/survey.react.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* surveyjs - Survey JavaScript library v1.9.
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.91
|
3
3
|
* Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
5
5
|
*/
|
@@ -2077,7 +2077,7 @@ var Base = /** @class */ (function () {
|
|
2077
2077
|
*/
|
2078
2078
|
Base.prototype.getPropertyValue = function (name, defaultValue) {
|
2079
2079
|
if (defaultValue === void 0) { defaultValue = null; }
|
2080
|
-
var res = this.
|
2080
|
+
var res = this.getPropertyValueWithoutDefault(name);
|
2081
2081
|
if (this.isPropertyEmpty(res)) {
|
2082
2082
|
var locStr = this.localizableStrings ? this.localizableStrings[name] : undefined;
|
2083
2083
|
if (locStr)
|
@@ -2103,6 +2103,9 @@ var Base = /** @class */ (function () {
|
|
2103
2103
|
return prop.onGetValue(this);
|
2104
2104
|
return undefined;
|
2105
2105
|
};
|
2106
|
+
Base.prototype.getPropertyValueWithoutDefault = function (name) {
|
2107
|
+
return this.getPropertyValueCore(this.propertyHash, name);
|
2108
|
+
};
|
2106
2109
|
Base.prototype.getPropertyValueCore = function (propertiesHash, name) {
|
2107
2110
|
if (!this.isLoadingFromJson) {
|
2108
2111
|
Base.collectDependency(this, name);
|
@@ -6279,7 +6282,7 @@ var DragDropChoices = /** @class */ (function (_super) {
|
|
6279
6282
|
}
|
6280
6283
|
var draggedElementShortcut = document.createElement("div");
|
6281
6284
|
// draggedElementShortcut.innerText = text;
|
6282
|
-
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index:
|
6285
|
+
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index: 10000;\n font-family: var(--font-family, $font-family);\n ";
|
6283
6286
|
var isDeepClone = true;
|
6284
6287
|
var clone = (draggedElementNode
|
6285
6288
|
.closest("[data-sv-drop-target-item-value]")
|
@@ -6302,7 +6305,7 @@ var DragDropChoices = /** @class */ (function (_super) {
|
|
6302
6305
|
};
|
6303
6306
|
DragDropChoices.prototype.createImagePickerShortcut = function (item, text, draggedElementNode, event) {
|
6304
6307
|
var draggedElementShortcut = document.createElement("div");
|
6305
|
-
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index:
|
6308
|
+
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index: 10000;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1), 0px 2px 6px rgba(0, 0, 0, 0.1);\n padding: 4px;\n border-radius: 4px;\n background: white;\n ";
|
6306
6309
|
var itemValueNode = draggedElementNode.closest("[data-sv-drop-target-item-value]");
|
6307
6310
|
var controlsNode = itemValueNode.querySelector(".svc-image-item-value-controls");
|
6308
6311
|
var imageContainerNode = itemValueNode.querySelector(".sd-imagepicker__image-container");
|
@@ -6900,7 +6903,7 @@ var DragDropMatrixRows = /** @class */ (function (_super) {
|
|
6900
6903
|
var _this = this;
|
6901
6904
|
var draggedElementShortcut = document.createElement("div");
|
6902
6905
|
// draggedElementShortcut.innerText = text;
|
6903
|
-
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index:
|
6906
|
+
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index: 10000;\n font-family: var(--font-family, $font-family);\n ";
|
6904
6907
|
var isDeepClone = true;
|
6905
6908
|
if (!!draggedElementNode) {
|
6906
6909
|
var row = (draggedElementNode
|
@@ -7075,7 +7078,7 @@ var DragDropRankingChoices = /** @class */ (function (_super) {
|
|
7075
7078
|
DragDropRankingChoices.prototype.createDraggedElementShortcut = function (text, draggedElementNode, event) {
|
7076
7079
|
var draggedElementShortcut = document.createElement("div");
|
7077
7080
|
draggedElementShortcut.className = this.shortcutClass + " sv-ranking-shortcut";
|
7078
|
-
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index:
|
7081
|
+
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index: 10000;\n border-radius: 36px;\n min-width: 100px;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1), 0px 2px 6px rgba(0, 0, 0, 0.1);\n background-color: var(--background, white);\n font-family: var(--font-family, $font-family);\n ";
|
7079
7082
|
var isDeepClone = true;
|
7080
7083
|
var clone = draggedElementNode.cloneNode(isDeepClone);
|
7081
7084
|
draggedElementShortcut.appendChild(clone);
|
@@ -7317,6 +7320,7 @@ var DropdownListModel = /** @class */ (function (_super) {
|
|
7317
7320
|
this._popupModel = new _popup__WEBPACK_IMPORTED_MODULE_3__["PopupModel"]("sv-list", { model: this.listModel }, "bottom", "center", false);
|
7318
7321
|
this._popupModel.displayMode = _utils_devices__WEBPACK_IMPORTED_MODULE_6__["IsTouch"] ? "overlay" : "popup";
|
7319
7322
|
this._popupModel.positionMode = "fixed";
|
7323
|
+
this._popupModel.isFocusedContainer = false;
|
7320
7324
|
this._popupModel.isFocusedContent = _utils_devices__WEBPACK_IMPORTED_MODULE_6__["IsTouch"];
|
7321
7325
|
this._popupModel.setWidthByTarget = !_utils_devices__WEBPACK_IMPORTED_MODULE_6__["IsTouch"];
|
7322
7326
|
this.updatePopupFocusFirstInputSelector();
|
@@ -7435,6 +7439,13 @@ var DropdownListModel = /** @class */ (function (_super) {
|
|
7435
7439
|
updateAfterFilterStringChanged();
|
7436
7440
|
}
|
7437
7441
|
};
|
7442
|
+
Object.defineProperty(DropdownListModel.prototype, "isAllDataLoaded", {
|
7443
|
+
get: function () {
|
7444
|
+
return !!this.itemsSettings.totalCount && this.itemsSettings.items.length == this.itemsSettings.totalCount;
|
7445
|
+
},
|
7446
|
+
enumerable: false,
|
7447
|
+
configurable: true
|
7448
|
+
});
|
7438
7449
|
DropdownListModel.prototype.applyInputString = function (item) {
|
7439
7450
|
var hasHtml = item === null || item === void 0 ? void 0 : item.locText.hasHtml;
|
7440
7451
|
if (hasHtml || this.question.inputFieldComponentName) {
|
@@ -8635,148 +8646,149 @@ __webpack_require__.r(__webpack_exports__);
|
|
8635
8646
|
/* harmony import */ var _surveyProgressButtons__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../../surveyProgressButtons */ "./src/surveyProgressButtons.ts");
|
8636
8647
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressButtonsModel", function() { return _surveyProgressButtons__WEBPACK_IMPORTED_MODULE_57__["SurveyProgressButtonsModel"]; });
|
8637
8648
|
|
8638
|
-
/* harmony import */ var
|
8639
|
-
/* harmony reexport
|
8649
|
+
/* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../../themes */ "./src/themes.ts");
|
8650
|
+
/* empty/unused harmony star reexport *//* harmony import */ var _survey__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../../survey */ "./src/survey.ts");
|
8651
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyModel", function() { return _survey__WEBPACK_IMPORTED_MODULE_59__["SurveyModel"]; });
|
8640
8652
|
|
8641
|
-
/* harmony import */ var
|
8642
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTrigger", function() { return
|
8653
|
+
/* harmony import */ var _trigger__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ../../trigger */ "./src/trigger.ts");
|
8654
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTrigger", function() { return _trigger__WEBPACK_IMPORTED_MODULE_60__["SurveyTrigger"]; });
|
8643
8655
|
|
8644
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTriggerComplete", function() { return
|
8656
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTriggerComplete", function() { return _trigger__WEBPACK_IMPORTED_MODULE_60__["SurveyTriggerComplete"]; });
|
8645
8657
|
|
8646
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTriggerSetValue", function() { return
|
8658
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTriggerSetValue", function() { return _trigger__WEBPACK_IMPORTED_MODULE_60__["SurveyTriggerSetValue"]; });
|
8647
8659
|
|
8648
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTriggerVisible", function() { return
|
8660
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTriggerVisible", function() { return _trigger__WEBPACK_IMPORTED_MODULE_60__["SurveyTriggerVisible"]; });
|
8649
8661
|
|
8650
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTriggerCopyValue", function() { return
|
8662
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTriggerCopyValue", function() { return _trigger__WEBPACK_IMPORTED_MODULE_60__["SurveyTriggerCopyValue"]; });
|
8651
8663
|
|
8652
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTriggerRunExpression", function() { return
|
8664
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTriggerRunExpression", function() { return _trigger__WEBPACK_IMPORTED_MODULE_60__["SurveyTriggerRunExpression"]; });
|
8653
8665
|
|
8654
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Trigger", function() { return
|
8666
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Trigger", function() { return _trigger__WEBPACK_IMPORTED_MODULE_60__["Trigger"]; });
|
8655
8667
|
|
8656
|
-
/* harmony import */ var
|
8657
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupSurveyModel", function() { return
|
8668
|
+
/* harmony import */ var _popup_survey__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ../../popup-survey */ "./src/popup-survey.ts");
|
8669
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupSurveyModel", function() { return _popup_survey__WEBPACK_IMPORTED_MODULE_61__["PopupSurveyModel"]; });
|
8658
8670
|
|
8659
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyWindowModel", function() { return
|
8671
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyWindowModel", function() { return _popup_survey__WEBPACK_IMPORTED_MODULE_61__["SurveyWindowModel"]; });
|
8660
8672
|
|
8661
|
-
/* harmony import */ var
|
8662
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextPreProcessor", function() { return
|
8673
|
+
/* harmony import */ var _textPreProcessor__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ../../textPreProcessor */ "./src/textPreProcessor.ts");
|
8674
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextPreProcessor", function() { return _textPreProcessor__WEBPACK_IMPORTED_MODULE_62__["TextPreProcessor"]; });
|
8663
8675
|
|
8664
|
-
/* harmony import */ var
|
8665
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Notifier", function() { return
|
8676
|
+
/* harmony import */ var _notifier__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ../../notifier */ "./src/notifier.ts");
|
8677
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Notifier", function() { return _notifier__WEBPACK_IMPORTED_MODULE_63__["Notifier"]; });
|
8666
8678
|
|
8667
|
-
/* harmony import */ var
|
8668
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dxSurveyService", function() { return
|
8679
|
+
/* harmony import */ var _dxSurveyService__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ../../dxSurveyService */ "./src/dxSurveyService.ts");
|
8680
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dxSurveyService", function() { return _dxSurveyService__WEBPACK_IMPORTED_MODULE_64__["dxSurveyService"]; });
|
8669
8681
|
|
8670
|
-
/* harmony import */ var
|
8671
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "englishStrings", function() { return
|
8682
|
+
/* harmony import */ var _localization_english__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ../../localization/english */ "./src/localization/english.ts");
|
8683
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "englishStrings", function() { return _localization_english__WEBPACK_IMPORTED_MODULE_65__["englishStrings"]; });
|
8672
8684
|
|
8673
|
-
/* harmony import */ var
|
8674
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "surveyLocalization", function() { return
|
8685
|
+
/* harmony import */ var _surveyStrings__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ../../surveyStrings */ "./src/surveyStrings.ts");
|
8686
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "surveyLocalization", function() { return _surveyStrings__WEBPACK_IMPORTED_MODULE_66__["surveyLocalization"]; });
|
8675
8687
|
|
8676
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "surveyStrings", function() { return
|
8688
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "surveyStrings", function() { return _surveyStrings__WEBPACK_IMPORTED_MODULE_66__["surveyStrings"]; });
|
8677
8689
|
|
8678
|
-
/* harmony import */ var
|
8679
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionCustomWidget", function() { return
|
8690
|
+
/* harmony import */ var _questionCustomWidgets__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ../../questionCustomWidgets */ "./src/questionCustomWidgets.ts");
|
8691
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionCustomWidget", function() { return _questionCustomWidgets__WEBPACK_IMPORTED_MODULE_67__["QuestionCustomWidget"]; });
|
8680
8692
|
|
8681
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CustomWidgetCollection", function() { return
|
8693
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CustomWidgetCollection", function() { return _questionCustomWidgets__WEBPACK_IMPORTED_MODULE_67__["CustomWidgetCollection"]; });
|
8682
8694
|
|
8683
|
-
/* harmony import */ var
|
8684
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionCustomModel", function() { return
|
8695
|
+
/* harmony import */ var _question_custom__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ../../question_custom */ "./src/question_custom.ts");
|
8696
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionCustomModel", function() { return _question_custom__WEBPACK_IMPORTED_MODULE_68__["QuestionCustomModel"]; });
|
8685
8697
|
|
8686
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionCompositeModel", function() { return
|
8698
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionCompositeModel", function() { return _question_custom__WEBPACK_IMPORTED_MODULE_68__["QuestionCompositeModel"]; });
|
8687
8699
|
|
8688
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentQuestionJSON", function() { return
|
8700
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentQuestionJSON", function() { return _question_custom__WEBPACK_IMPORTED_MODULE_68__["ComponentQuestionJSON"]; });
|
8689
8701
|
|
8690
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentCollection", function() { return
|
8702
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentCollection", function() { return _question_custom__WEBPACK_IMPORTED_MODULE_68__["ComponentCollection"]; });
|
8691
8703
|
|
8692
|
-
/* harmony import */ var
|
8693
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StylesManager", function() { return
|
8704
|
+
/* harmony import */ var _stylesmanager__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ../../stylesmanager */ "./src/stylesmanager.ts");
|
8705
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StylesManager", function() { return _stylesmanager__WEBPACK_IMPORTED_MODULE_69__["StylesManager"]; });
|
8694
8706
|
|
8695
|
-
/* harmony import */ var
|
8696
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListModel", function() { return
|
8707
|
+
/* harmony import */ var _list__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ../../list */ "./src/list.ts");
|
8708
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListModel", function() { return _list__WEBPACK_IMPORTED_MODULE_70__["ListModel"]; });
|
8697
8709
|
|
8698
|
-
/* harmony import */ var
|
8699
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MultiSelectListModel", function() { return
|
8710
|
+
/* harmony import */ var _multiSelectListModel__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ../../multiSelectListModel */ "./src/multiSelectListModel.ts");
|
8711
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MultiSelectListModel", function() { return _multiSelectListModel__WEBPACK_IMPORTED_MODULE_71__["MultiSelectListModel"]; });
|
8700
8712
|
|
8701
|
-
/* harmony import */ var
|
8702
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupModel", function() { return
|
8713
|
+
/* harmony import */ var _popup__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ../../popup */ "./src/popup.ts");
|
8714
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupModel", function() { return _popup__WEBPACK_IMPORTED_MODULE_72__["PopupModel"]; });
|
8703
8715
|
|
8704
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createDialogOptions", function() { return
|
8716
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createDialogOptions", function() { return _popup__WEBPACK_IMPORTED_MODULE_72__["createDialogOptions"]; });
|
8705
8717
|
|
8706
|
-
/* harmony import */ var
|
8707
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupBaseViewModel", function() { return
|
8718
|
+
/* harmony import */ var _popup_view_model__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ../../popup-view-model */ "./src/popup-view-model.ts");
|
8719
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupBaseViewModel", function() { return _popup_view_model__WEBPACK_IMPORTED_MODULE_73__["PopupBaseViewModel"]; });
|
8708
8720
|
|
8709
|
-
/* harmony import */ var
|
8710
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupDropdownViewModel", function() { return
|
8721
|
+
/* harmony import */ var _popup_dropdown_view_model__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ../../popup-dropdown-view-model */ "./src/popup-dropdown-view-model.ts");
|
8722
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupDropdownViewModel", function() { return _popup_dropdown_view_model__WEBPACK_IMPORTED_MODULE_74__["PopupDropdownViewModel"]; });
|
8711
8723
|
|
8712
|
-
/* harmony import */ var
|
8713
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupModalViewModel", function() { return
|
8724
|
+
/* harmony import */ var _popup_modal_view_model__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ../../popup-modal-view-model */ "./src/popup-modal-view-model.ts");
|
8725
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupModalViewModel", function() { return _popup_modal_view_model__WEBPACK_IMPORTED_MODULE_75__["PopupModalViewModel"]; });
|
8714
8726
|
|
8715
|
-
/* harmony import */ var
|
8716
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createPopupViewModel", function() { return
|
8727
|
+
/* harmony import */ var _popup_utils__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ../../popup-utils */ "./src/popup-utils.ts");
|
8728
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createPopupViewModel", function() { return _popup_utils__WEBPACK_IMPORTED_MODULE_76__["createPopupViewModel"]; });
|
8717
8729
|
|
8718
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createPopupModalViewModel", function() { return
|
8730
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createPopupModalViewModel", function() { return _popup_utils__WEBPACK_IMPORTED_MODULE_76__["createPopupModalViewModel"]; });
|
8719
8731
|
|
8720
|
-
/* harmony import */ var
|
8721
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownListModel", function() { return
|
8732
|
+
/* harmony import */ var _dropdownListModel__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ../../dropdownListModel */ "./src/dropdownListModel.ts");
|
8733
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownListModel", function() { return _dropdownListModel__WEBPACK_IMPORTED_MODULE_77__["DropdownListModel"]; });
|
8722
8734
|
|
8723
|
-
/* harmony import */ var
|
8724
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownMultiSelectListModel", function() { return
|
8735
|
+
/* harmony import */ var _dropdownMultiSelectListModel__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ../../dropdownMultiSelectListModel */ "./src/dropdownMultiSelectListModel.ts");
|
8736
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownMultiSelectListModel", function() { return _dropdownMultiSelectListModel__WEBPACK_IMPORTED_MODULE_78__["DropdownMultiSelectListModel"]; });
|
8725
8737
|
|
8726
|
-
/* harmony import */ var
|
8727
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionButtonGroupModel", function() { return
|
8738
|
+
/* harmony import */ var _question_buttongroup__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ../../question_buttongroup */ "./src/question_buttongroup.ts");
|
8739
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionButtonGroupModel", function() { return _question_buttongroup__WEBPACK_IMPORTED_MODULE_79__["QuestionButtonGroupModel"]; });
|
8728
8740
|
|
8729
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonGroupItemModel", function() { return
|
8741
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonGroupItemModel", function() { return _question_buttongroup__WEBPACK_IMPORTED_MODULE_79__["ButtonGroupItemModel"]; });
|
8730
8742
|
|
8731
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonGroupItemValue", function() { return
|
8743
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonGroupItemValue", function() { return _question_buttongroup__WEBPACK_IMPORTED_MODULE_79__["ButtonGroupItemValue"]; });
|
8732
8744
|
|
8733
|
-
/* harmony import */ var
|
8734
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IsMobile", function() { return
|
8745
|
+
/* harmony import */ var _utils_devices__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ../../utils/devices */ "./src/utils/devices.ts");
|
8746
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IsMobile", function() { return _utils_devices__WEBPACK_IMPORTED_MODULE_80__["IsMobile"]; });
|
8735
8747
|
|
8736
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IsTouch", function() { return
|
8748
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IsTouch", function() { return _utils_devices__WEBPACK_IMPORTED_MODULE_80__["IsTouch"]; });
|
8737
8749
|
|
8738
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_setIsTouch", function() { return
|
8750
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_setIsTouch", function() { return _utils_devices__WEBPACK_IMPORTED_MODULE_80__["_setIsTouch"]; });
|
8739
8751
|
|
8740
|
-
/* harmony import */ var
|
8741
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "confirmAction", function() { return
|
8752
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ../../utils/utils */ "./src/utils/utils.ts");
|
8753
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "confirmAction", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_81__["confirmAction"]; });
|
8742
8754
|
|
8743
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "detectIEOrEdge", function() { return
|
8755
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "detectIEOrEdge", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_81__["detectIEOrEdge"]; });
|
8744
8756
|
|
8745
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "doKey2ClickUp", function() { return
|
8757
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "doKey2ClickUp", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_81__["doKey2ClickUp"]; });
|
8746
8758
|
|
8747
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "doKey2ClickDown", function() { return
|
8759
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "doKey2ClickDown", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_81__["doKey2ClickDown"]; });
|
8748
8760
|
|
8749
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "doKey2ClickBlur", function() { return
|
8761
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "doKey2ClickBlur", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_81__["doKey2ClickBlur"]; });
|
8750
8762
|
|
8751
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "loadFileFromBase64", function() { return
|
8763
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "loadFileFromBase64", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_81__["loadFileFromBase64"]; });
|
8752
8764
|
|
8753
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "increaseHeightByContent", function() { return
|
8765
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "increaseHeightByContent", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_81__["increaseHeightByContent"]; });
|
8754
8766
|
|
8755
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createSvg", function() { return
|
8767
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createSvg", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_81__["createSvg"]; });
|
8756
8768
|
|
8757
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sanitizeEditableContent", function() { return
|
8769
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sanitizeEditableContent", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_81__["sanitizeEditableContent"]; });
|
8758
8770
|
|
8759
|
-
/* harmony import */ var
|
8760
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CssClassBuilder", function() { return
|
8771
|
+
/* harmony import */ var _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ../../utils/cssClassBuilder */ "./src/utils/cssClassBuilder.ts");
|
8772
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CssClassBuilder", function() { return _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_82__["CssClassBuilder"]; });
|
8761
8773
|
|
8762
|
-
/* harmony import */ var
|
8763
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "surveyCss", function() { return
|
8774
|
+
/* harmony import */ var _defaultCss_defaultV2Css__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ../../defaultCss/defaultV2Css */ "./src/defaultCss/defaultV2Css.ts");
|
8775
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "surveyCss", function() { return _defaultCss_defaultV2Css__WEBPACK_IMPORTED_MODULE_83__["surveyCss"]; });
|
8764
8776
|
|
8765
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultV2Css", function() { return
|
8777
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultV2Css", function() { return _defaultCss_defaultV2Css__WEBPACK_IMPORTED_MODULE_83__["defaultV2Css"]; });
|
8766
8778
|
|
8767
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultV2ThemeName", function() { return
|
8779
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultV2ThemeName", function() { return _defaultCss_defaultV2Css__WEBPACK_IMPORTED_MODULE_83__["defaultV2ThemeName"]; });
|
8768
8780
|
|
8769
|
-
/* harmony import */ var
|
8770
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DragDropCore", function() { return
|
8781
|
+
/* harmony import */ var _dragdrop_core__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ../../dragdrop/core */ "./src/dragdrop/core.ts");
|
8782
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DragDropCore", function() { return _dragdrop_core__WEBPACK_IMPORTED_MODULE_84__["DragDropCore"]; });
|
8771
8783
|
|
8772
|
-
/* harmony import */ var
|
8773
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DragDropChoices", function() { return
|
8784
|
+
/* harmony import */ var _dragdrop_choices__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ../../dragdrop/choices */ "./src/dragdrop/choices.ts");
|
8785
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DragDropChoices", function() { return _dragdrop_choices__WEBPACK_IMPORTED_MODULE_85__["DragDropChoices"]; });
|
8774
8786
|
|
8775
8787
|
// styles
|
8776
8788
|
// import "../../main.scss";
|
8777
8789
|
//import "../../modern.scss";
|
8778
8790
|
var Version;
|
8779
|
-
Version = "" + "1.9.
|
8791
|
+
Version = "" + "1.9.91";
|
8780
8792
|
function checkLibraryVersion(ver, libraryName) {
|
8781
8793
|
if (Version != ver) {
|
8782
8794
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|
@@ -8849,6 +8861,7 @@ function checkLibraryVersion(ver, libraryName) {
|
|
8849
8861
|
|
8850
8862
|
|
8851
8863
|
|
8864
|
+
|
8852
8865
|
|
8853
8866
|
|
8854
8867
|
// export { cultureInfo } from "../../cultureInfo";
|
@@ -14740,6 +14753,14 @@ var OperandMaker = /** @class */ (function () {
|
|
14740
14753
|
var opStr = OperandMaker.signs[operatorName];
|
14741
14754
|
return opStr == null ? operatorName : opStr;
|
14742
14755
|
};
|
14756
|
+
OperandMaker.convertValForDateCompare = function (val, second) {
|
14757
|
+
if (second instanceof Date && typeof val === "string") {
|
14758
|
+
var res = new Date(val);
|
14759
|
+
res.setHours(0, 0, 0);
|
14760
|
+
return res;
|
14761
|
+
}
|
14762
|
+
return val;
|
14763
|
+
};
|
14743
14764
|
OperandMaker.unaryFunctions = {
|
14744
14765
|
empty: function (value) {
|
14745
14766
|
return _helpers__WEBPACK_IMPORTED_MODULE_0__["Helpers"].isValueEmpty(value);
|
@@ -14804,11 +14825,15 @@ var OperandMaker = /** @class */ (function () {
|
|
14804
14825
|
greater: function (left, right) {
|
14805
14826
|
if (left == null || right == null)
|
14806
14827
|
return false;
|
14828
|
+
left = OperandMaker.convertValForDateCompare(left, right);
|
14829
|
+
right = OperandMaker.convertValForDateCompare(right, left);
|
14807
14830
|
return left > right;
|
14808
14831
|
},
|
14809
14832
|
less: function (left, right) {
|
14810
14833
|
if (left == null || right == null)
|
14811
14834
|
return false;
|
14835
|
+
left = OperandMaker.convertValForDateCompare(left, right);
|
14836
|
+
right = OperandMaker.convertValForDateCompare(right, left);
|
14812
14837
|
return left < right;
|
14813
14838
|
},
|
14814
14839
|
greaterorequal: function (left, right) {
|
@@ -14822,6 +14847,8 @@ var OperandMaker = /** @class */ (function () {
|
|
14822
14847
|
return OperandMaker.binaryFunctions.less(left, right);
|
14823
14848
|
},
|
14824
14849
|
equal: function (left, right) {
|
14850
|
+
left = OperandMaker.convertValForDateCompare(left, right);
|
14851
|
+
right = OperandMaker.convertValForDateCompare(right, left);
|
14825
14852
|
return OperandMaker.isTwoValueEquals(left, right);
|
14826
14853
|
},
|
14827
14854
|
notequal: function (left, right) {
|
@@ -17520,6 +17547,7 @@ var JsonObjectProperty = /** @class */ (function () {
|
|
17520
17547
|
"categoryIndex",
|
17521
17548
|
"visibleIndex",
|
17522
17549
|
"nextToProperty",
|
17550
|
+
"overridingProperty",
|
17523
17551
|
"showMode",
|
17524
17552
|
"dependedProperties",
|
17525
17553
|
"visibleIf",
|
@@ -17840,6 +17868,9 @@ var JsonMetadataClass = /** @class */ (function () {
|
|
17840
17868
|
if (!_helpers__WEBPACK_IMPORTED_MODULE_2__["Helpers"].isValueEmpty(propInfo.nextToProperty)) {
|
17841
17869
|
prop.nextToProperty = propInfo.nextToProperty;
|
17842
17870
|
}
|
17871
|
+
if (!_helpers__WEBPACK_IMPORTED_MODULE_2__["Helpers"].isValueEmpty(propInfo.overridingProperty)) {
|
17872
|
+
prop.overridingProperty = propInfo.overridingProperty;
|
17873
|
+
}
|
17843
17874
|
if (!_helpers__WEBPACK_IMPORTED_MODULE_2__["Helpers"].isValueEmpty(propInfo.visibleIndex)) {
|
17844
17875
|
prop.visibleIndex = propInfo.visibleIndex;
|
17845
17876
|
}
|
@@ -29381,7 +29412,7 @@ function setStyles() {
|
|
29381
29412
|
".sv-ranking--drag-handle-area-icon .sv-ranking-item__icon--hover": "cursor: pointer;",
|
29382
29413
|
// EO ranking
|
29383
29414
|
// drag drop
|
29384
|
-
".sv-dragged-element-shortcut": "height: 24px; min-width: 100px; border-radius: 36px; background-color: white; padding: 16px; cursor: grabbing; position: absolute; z-index:
|
29415
|
+
".sv-dragged-element-shortcut": "height: 24px; min-width: 100px; border-radius: 36px; background-color: white; padding: 16px; cursor: grabbing; position: absolute; z-index: 10000; box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1); font-family: var(--font-family, $font-family); font-size: 16px; padding-left: 20px;line-height: 24px;",
|
29385
29416
|
".sv-matrixdynamic__drag-icon": "padding-top:14px",
|
29386
29417
|
".sv-matrixdynamic__drag-icon:after": "content: ' '; display: block; height: 6px; width: 20px; border: 1px solid #e7e7e7; box-sizing: border-box; border-radius: 10px; cursor: move; margin-top: 12px;",
|
29387
29418
|
".sv-matrix-row--drag-drop-ghost-mod td": "background-color: #f3f3f3;",
|
@@ -30367,6 +30398,13 @@ var PopupBaseViewModel = /** @class */ (function (_super) {
|
|
30367
30398
|
enumerable: false,
|
30368
30399
|
configurable: true
|
30369
30400
|
});
|
30401
|
+
Object.defineProperty(PopupBaseViewModel.prototype, "isFocusedContainer", {
|
30402
|
+
get: function () {
|
30403
|
+
return this.model.isFocusedContainer;
|
30404
|
+
},
|
30405
|
+
enumerable: false,
|
30406
|
+
configurable: true
|
30407
|
+
});
|
30370
30408
|
Object.defineProperty(PopupBaseViewModel.prototype, "showFooter", {
|
30371
30409
|
get: function () {
|
30372
30410
|
return this.getShowFooter();
|
@@ -30448,6 +30486,9 @@ var PopupBaseViewModel = /** @class */ (function (_super) {
|
|
30448
30486
|
if (this.isFocusedContent) {
|
30449
30487
|
this.focusFirstInput();
|
30450
30488
|
}
|
30489
|
+
else if (this.isFocusedContainer) {
|
30490
|
+
this.focusContainer();
|
30491
|
+
}
|
30451
30492
|
};
|
30452
30493
|
PopupBaseViewModel.prototype.updateOnShowing = function () {
|
30453
30494
|
this.prevActiveElement = _settings__WEBPACK_IMPORTED_MODULE_4__["settings"].environment.root.activeElement;
|
@@ -30461,6 +30502,11 @@ var PopupBaseViewModel = /** @class */ (function (_super) {
|
|
30461
30502
|
this.prevActiveElement.focus();
|
30462
30503
|
}
|
30463
30504
|
};
|
30505
|
+
PopupBaseViewModel.prototype.focusContainer = function () {
|
30506
|
+
if (!this.container)
|
30507
|
+
return;
|
30508
|
+
this.container.children[0].focus();
|
30509
|
+
};
|
30464
30510
|
PopupBaseViewModel.prototype.focusFirstInput = function () {
|
30465
30511
|
var _this = this;
|
30466
30512
|
setTimeout(function () {
|
@@ -30470,7 +30516,7 @@ var PopupBaseViewModel = /** @class */ (function (_super) {
|
|
30470
30516
|
if (!!el)
|
30471
30517
|
el.focus();
|
30472
30518
|
else
|
30473
|
-
_this.
|
30519
|
+
_this.focusContainer();
|
30474
30520
|
}, 100);
|
30475
30521
|
};
|
30476
30522
|
PopupBaseViewModel.prototype.clickOutside = function () {
|
@@ -30651,6 +30697,9 @@ var PopupModel = /** @class */ (function (_super) {
|
|
30651
30697
|
__decorate([
|
30652
30698
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: true })
|
30653
30699
|
], PopupModel.prototype, "isFocusedContent", void 0);
|
30700
|
+
__decorate([
|
30701
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: true })
|
30702
|
+
], PopupModel.prototype, "isFocusedContainer", void 0);
|
30654
30703
|
__decorate([
|
30655
30704
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: function () { } })
|
30656
30705
|
], PopupModel.prototype, "onCancel", void 0);
|
@@ -32213,7 +32262,7 @@ var Question = /** @class */ (function (_super) {
|
|
32213
32262
|
});
|
32214
32263
|
Object.defineProperty(Question.prototype, "questionValue", {
|
32215
32264
|
get: function () {
|
32216
|
-
return this.
|
32265
|
+
return this.getPropertyValueWithoutDefault("value");
|
32217
32266
|
},
|
32218
32267
|
set: function (val) {
|
32219
32268
|
this.setPropertyValue("value", val);
|
@@ -32223,7 +32272,7 @@ var Question = /** @class */ (function (_super) {
|
|
32223
32272
|
});
|
32224
32273
|
Object.defineProperty(Question.prototype, "questionComment", {
|
32225
32274
|
get: function () {
|
32226
|
-
return this.
|
32275
|
+
return this.getPropertyValueWithoutDefault("comment");
|
32227
32276
|
},
|
32228
32277
|
set: function (val) {
|
32229
32278
|
this.setPropertyValue("comment", val);
|
@@ -32935,6 +32984,8 @@ var Question = /** @class */ (function (_super) {
|
|
32935
32984
|
}
|
32936
32985
|
};
|
32937
32986
|
Question.prototype.setNewValue = function (newValue) {
|
32987
|
+
if (this.isNewValueEqualsToValue(newValue))
|
32988
|
+
return;
|
32938
32989
|
var oldAnswered = this.isAnswered;
|
32939
32990
|
this.setNewValueInData(newValue);
|
32940
32991
|
this.allowNotifyValueChanged && this.onValueChanged();
|
@@ -32942,6 +32993,13 @@ var Question = /** @class */ (function (_super) {
|
|
32942
32993
|
this.updateQuestionCss();
|
32943
32994
|
}
|
32944
32995
|
};
|
32996
|
+
Question.prototype.isNewValueEqualsToValue = function (newValue) {
|
32997
|
+
var val = this.value;
|
32998
|
+
if (!this.isTwoValueEquals(newValue, val))
|
32999
|
+
return false;
|
33000
|
+
var isObj = newValue === val && !!val && (Array.isArray(val) || typeof val === "object");
|
33001
|
+
return !isObj;
|
33002
|
+
};
|
32945
33003
|
Question.prototype.isTextValue = function () {
|
32946
33004
|
return false;
|
32947
33005
|
};
|
@@ -33254,7 +33312,7 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].addClass("question", [
|
|
33254
33312
|
default: "default",
|
33255
33313
|
choices: ["default", "collapsed", "expanded"],
|
33256
33314
|
},
|
33257
|
-
{ name: "visible:switch", default: true },
|
33315
|
+
{ name: "visible:switch", default: true, overridingProperty: "visibleIf" },
|
33258
33316
|
{ name: "useDisplayValuesInDynamicTexts:boolean", alternativeName: "useDisplayValuesInTitle", default: true, layout: "row" },
|
33259
33317
|
"visibleIf:condition",
|
33260
33318
|
{ name: "width" },
|
@@ -33336,13 +33394,13 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].addClass("question", [
|
|
33336
33394
|
default: "default",
|
33337
33395
|
choices: ["default", "none", "onComplete", "onHidden"],
|
33338
33396
|
},
|
33339
|
-
"isRequired:switch",
|
33397
|
+
{ name: "isRequired:switch", overridingProperty: "requiredIf" },
|
33340
33398
|
"requiredIf:condition",
|
33341
33399
|
{
|
33342
33400
|
name: "requiredErrorText:text",
|
33343
33401
|
serializationProperty: "locRequiredErrorText",
|
33344
33402
|
},
|
33345
|
-
"readOnly:switch",
|
33403
|
+
{ name: "readOnly:switch", overridingProperty: "enableIf" },
|
33346
33404
|
{
|
33347
33405
|
name: "validators:validators",
|
33348
33406
|
baseClassName: "surveyvalidator",
|
@@ -33958,7 +34016,18 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
33958
34016
|
QuestionSelectBase.prototype.onEnableItemCallBack = function (item) {
|
33959
34017
|
return true;
|
33960
34018
|
};
|
33961
|
-
QuestionSelectBase.prototype.onSelectedItemValuesChangedHandler = function (newValue) {
|
34019
|
+
QuestionSelectBase.prototype.onSelectedItemValuesChangedHandler = function (newValue) {
|
34020
|
+
var _a;
|
34021
|
+
(_a = this.survey) === null || _a === void 0 ? void 0 : _a.loadedChoicesFromServer(this);
|
34022
|
+
};
|
34023
|
+
QuestionSelectBase.prototype.getItemIfChoicesNotContainThisValue = function (value, text) {
|
34024
|
+
if (!this.isReady) {
|
34025
|
+
return this.createItemValue(value, text);
|
34026
|
+
}
|
34027
|
+
else {
|
34028
|
+
return null;
|
34029
|
+
}
|
34030
|
+
};
|
33962
34031
|
QuestionSelectBase.prototype.getSingleSelectedItem = function () {
|
33963
34032
|
var selectedItemValues = this.selectedItemValues;
|
33964
34033
|
if (this.isEmpty())
|
@@ -33968,9 +34037,12 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
33968
34037
|
if (!itemValue && !selectedItemValues) {
|
33969
34038
|
this.updateSelectedItemValues();
|
33970
34039
|
}
|
33971
|
-
return itemValue || selectedItemValues || (this.isOtherSelected ? this.otherItem : this.
|
34040
|
+
return itemValue || selectedItemValues || (this.isOtherSelected ? this.otherItem : this.getItemIfChoicesNotContainThisValue(this.value));
|
33972
34041
|
};
|
33973
34042
|
QuestionSelectBase.prototype.onGetSingleSelectedItem = function (selectedItemByValue) { };
|
34043
|
+
QuestionSelectBase.prototype.getMultipleSelectedItems = function () {
|
34044
|
+
return [];
|
34045
|
+
};
|
33974
34046
|
QuestionSelectBase.prototype.setConditionalChoicesRunner = function () {
|
33975
34047
|
if (this.choicesVisibleIf) {
|
33976
34048
|
if (!this.conditionChoicesVisibleIfRunner) {
|
@@ -34631,17 +34703,28 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
34631
34703
|
QuestionSelectBase.prototype.getChoicesDisplayValue = function (items, val) {
|
34632
34704
|
if (val == this.otherItemValue.value)
|
34633
34705
|
return this.otherValue ? this.otherValue : this.locOtherText.textOrHtml;
|
34706
|
+
var selItem = this.getSingleSelectedItem();
|
34707
|
+
if (!!selItem && selItem.value === val)
|
34708
|
+
return selItem.locText.textOrHtml;
|
34634
34709
|
var str = _itemvalue__WEBPACK_IMPORTED_MODULE_3__["ItemValue"].getTextOrHtmlByValue(items, val);
|
34635
34710
|
return str == "" && val ? val : str;
|
34636
34711
|
};
|
34637
34712
|
QuestionSelectBase.prototype.getDisplayArrayValue = function (keysAsText, value, onGetValueCallback) {
|
34638
34713
|
var items = this.visibleChoices;
|
34639
34714
|
var strs = [];
|
34715
|
+
var vals = [];
|
34640
34716
|
for (var i = 0; i < value.length; i++) {
|
34641
|
-
|
34642
|
-
|
34643
|
-
|
34644
|
-
|
34717
|
+
vals.push(!onGetValueCallback ? value[i] : onGetValueCallback(i));
|
34718
|
+
}
|
34719
|
+
if (_helpers__WEBPACK_IMPORTED_MODULE_8__["Helpers"].isTwoValueEquals(this.value, vals)) {
|
34720
|
+
this.getMultipleSelectedItems().forEach(function (item) { return strs.push(item.locText.textOrHtml); });
|
34721
|
+
}
|
34722
|
+
if (strs.length === 0) {
|
34723
|
+
for (var i = 0; i < vals.length; i++) {
|
34724
|
+
var valStr = this.getChoicesDisplayValue(items, vals[i]);
|
34725
|
+
if (valStr) {
|
34726
|
+
strs.push(valStr);
|
34727
|
+
}
|
34645
34728
|
}
|
34646
34729
|
}
|
34647
34730
|
return strs.join(", ");
|
@@ -34750,7 +34833,9 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
34750
34833
|
errors.push(otherEmptyError);
|
34751
34834
|
};
|
34752
34835
|
QuestionSelectBase.prototype.setSurveyImpl = function (value, isLight) {
|
34836
|
+
this.isRunningChoices = true;
|
34753
34837
|
_super.prototype.setSurveyImpl.call(this, value, isLight);
|
34838
|
+
this.isRunningChoices = false;
|
34754
34839
|
this.runChoicesByUrl();
|
34755
34840
|
if (this.isAddDefaultItems) {
|
34756
34841
|
this.updateVisibleChoices();
|
@@ -34852,12 +34937,11 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
34852
34937
|
if (this.enableOnLoadingChoices) {
|
34853
34938
|
this.readOnly = false;
|
34854
34939
|
}
|
34940
|
+
var errors = [];
|
34855
34941
|
if (!this.isReadOnly) {
|
34856
|
-
var errors = [];
|
34857
34942
|
if (this.choicesByUrl && this.choicesByUrl.error) {
|
34858
34943
|
errors.push(this.choicesByUrl.error);
|
34859
34944
|
}
|
34860
|
-
this.errors = errors;
|
34861
34945
|
}
|
34862
34946
|
var newChoices = null;
|
34863
34947
|
var checkCachedValuesOnExisting = true;
|
@@ -34906,6 +34990,10 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
34906
34990
|
}
|
34907
34991
|
}
|
34908
34992
|
}
|
34993
|
+
if (!this.isReadOnly && !newChoices && !this.isFirstLoadChoicesFromUrl) {
|
34994
|
+
this.value = null;
|
34995
|
+
}
|
34996
|
+
this.errors = errors;
|
34909
34997
|
this.choicesLoaded();
|
34910
34998
|
};
|
34911
34999
|
QuestionSelectBase.prototype.createCachedValueForUrlRequests = function (val, checkOnExisting) {
|
@@ -34979,6 +35067,8 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
34979
35067
|
return !filteredChoices || filteredChoices.length > 0;
|
34980
35068
|
};
|
34981
35069
|
QuestionSelectBase.prototype.sortVisibleChoices = function (array) {
|
35070
|
+
if (this.isDesignMode)
|
35071
|
+
return array;
|
34982
35072
|
var order = this.choicesOrder.toLowerCase();
|
34983
35073
|
if (order == "asc")
|
34984
35074
|
return this.sortArray(array, 1);
|
@@ -36448,6 +36538,9 @@ var QuestionCheckboxModel = /** @class */ (function (_super) {
|
|
36448
36538
|
enumerable: false,
|
36449
36539
|
configurable: true
|
36450
36540
|
});
|
36541
|
+
QuestionCheckboxModel.prototype.getMultipleSelectedItems = function () {
|
36542
|
+
return this.selectedChoices;
|
36543
|
+
};
|
36451
36544
|
QuestionCheckboxModel.prototype.validateItemValues = function (itemValues) {
|
36452
36545
|
if (!!itemValues.length)
|
36453
36546
|
return itemValues;
|
@@ -37277,8 +37370,10 @@ var QuestionCustomModelBase = /** @class */ (function (_super) {
|
|
37277
37370
|
el.disableDesignActions = true;
|
37278
37371
|
};
|
37279
37372
|
QuestionCustomModelBase.prototype.setSurveyImpl = function (value, isLight) {
|
37373
|
+
this.isSettingValOnLoading = true;
|
37280
37374
|
_super.prototype.setSurveyImpl.call(this, value, isLight);
|
37281
37375
|
this.initElement(this.getElement());
|
37376
|
+
this.isSettingValOnLoading = false;
|
37282
37377
|
};
|
37283
37378
|
QuestionCustomModelBase.prototype.onSurveyLoad = function () {
|
37284
37379
|
_super.prototype.onSurveyLoad.call(this);
|
@@ -37713,6 +37808,7 @@ var QuestionCompositeModel = /** @class */ (function (_super) {
|
|
37713
37808
|
_super.prototype.onReadOnlyChanged.call(this);
|
37714
37809
|
};
|
37715
37810
|
QuestionCompositeModel.prototype.onSurveyLoad = function () {
|
37811
|
+
this.isSettingValOnLoading = true;
|
37716
37812
|
if (!!this.contentPanel) {
|
37717
37813
|
this.contentPanel.readOnly = this.isReadOnly;
|
37718
37814
|
this.setIsContentElement(this.contentPanel);
|
@@ -37724,6 +37820,7 @@ var QuestionCompositeModel = /** @class */ (function (_super) {
|
|
37724
37820
|
this.value = val;
|
37725
37821
|
}
|
37726
37822
|
}
|
37823
|
+
this.isSettingValOnLoading = false;
|
37727
37824
|
};
|
37728
37825
|
QuestionCompositeModel.prototype.setIsContentElement = function (panel) {
|
37729
37826
|
panel.isContentElement = true;
|
@@ -37765,21 +37862,30 @@ var QuestionCompositeModel = /** @class */ (function (_super) {
|
|
37765
37862
|
return !!this.contentPanel ? this.contentPanel.getQuestionByName(name) : undefined;
|
37766
37863
|
};
|
37767
37864
|
QuestionCompositeModel.prototype.setValue = function (name, newValue, locNotification, allowNotifyValueChanged) {
|
37768
|
-
if (this.settingNewValue)
|
37865
|
+
if (this.settingNewValue) {
|
37866
|
+
this.setNewValueIntoQuestion(name, newValue);
|
37769
37867
|
return;
|
37868
|
+
}
|
37770
37869
|
if (this.isValueChanging(name, newValue))
|
37771
37870
|
return;
|
37772
37871
|
this.settingNewValue = true;
|
37773
37872
|
if (!this.isEditingSurveyElement && !!this.contentPanel) {
|
37774
|
-
var
|
37775
|
-
|
37776
|
-
|
37777
|
-
|
37873
|
+
var index = 0;
|
37874
|
+
var maxTimes = this.contentPanel.questions.length + 1;
|
37875
|
+
while (index < maxTimes && this.updateValueCoreWithPanelValue())
|
37876
|
+
index++;
|
37778
37877
|
}
|
37779
37878
|
this.setNewValueIntoQuestion(name, newValue);
|
37780
37879
|
_super.prototype.setValue.call(this, name, newValue, locNotification, allowNotifyValueChanged);
|
37781
37880
|
this.settingNewValue = false;
|
37782
37881
|
};
|
37882
|
+
QuestionCompositeModel.prototype.updateValueCoreWithPanelValue = function () {
|
37883
|
+
var panelValue = this.contentPanel.getValue();
|
37884
|
+
if (this.isTwoValueEquals(this.getValueCore(), panelValue))
|
37885
|
+
return false;
|
37886
|
+
this.setValueCore(panelValue);
|
37887
|
+
return true;
|
37888
|
+
};
|
37783
37889
|
QuestionCompositeModel.prototype.setNewValueIntoQuestion = function (name, newValue) {
|
37784
37890
|
var q = this.getQuestionByName(name);
|
37785
37891
|
if (!!q && !this.isTwoValueEquals(newValue, q.value)) {
|
@@ -37823,6 +37929,7 @@ var QuestionCompositeModel = /** @class */ (function (_super) {
|
|
37823
37929
|
QuestionCompositeModel.prototype.setValuesIntoQuestions = function (newValue) {
|
37824
37930
|
if (!this.contentPanel)
|
37825
37931
|
return;
|
37932
|
+
var oldSettingNewValue = this.settingNewValue;
|
37826
37933
|
this.settingNewValue = true;
|
37827
37934
|
var questions = this.contentPanel.questions;
|
37828
37935
|
for (var i = 0; i < questions.length; i++) {
|
@@ -37833,8 +37940,7 @@ var QuestionCompositeModel = /** @class */ (function (_super) {
|
|
37833
37940
|
q.value = val;
|
37834
37941
|
}
|
37835
37942
|
}
|
37836
|
-
this.
|
37837
|
-
this.settingNewValue = false;
|
37943
|
+
this.settingNewValue = oldSettingNewValue;
|
37838
37944
|
};
|
37839
37945
|
QuestionCompositeModel.prototype.getDisplayValueCore = function (keyAsText, value) {
|
37840
37946
|
return _super.prototype.getContentDisplayValueCore.call(this, keyAsText, value, this.contentPanel);
|
@@ -38202,6 +38308,7 @@ var QuestionDropdownModel = /** @class */ (function (_super) {
|
|
38202
38308
|
QuestionDropdownModel.prototype.onSelectedItemValuesChangedHandler = function (newValue) {
|
38203
38309
|
var _a;
|
38204
38310
|
(_a = this.dropdownListModel) === null || _a === void 0 ? void 0 : _a.setInputStringFromSelectedItem(newValue);
|
38311
|
+
_super.prototype.onSelectedItemValuesChangedHandler.call(this, newValue);
|
38205
38312
|
};
|
38206
38313
|
QuestionDropdownModel.prototype.hasUnknownValue = function (val, includeOther, isFilteredChoices, checkEmptyValue) {
|
38207
38314
|
if (this.choicesLazyLoadEnabled) {
|
@@ -38216,6 +38323,14 @@ var QuestionDropdownModel = /** @class */ (function (_super) {
|
|
38216
38323
|
return false;
|
38217
38324
|
return _super.prototype.hasUnknownValue.call(this, val, true, false);
|
38218
38325
|
};
|
38326
|
+
QuestionDropdownModel.prototype.getItemIfChoicesNotContainThisValue = function (value, text) {
|
38327
|
+
if (this.choicesLazyLoadEnabled && !this.dropdownListModel.isAllDataLoaded) {
|
38328
|
+
return this.createItemValue(value, text);
|
38329
|
+
}
|
38330
|
+
else {
|
38331
|
+
return _super.prototype.getItemIfChoicesNotContainThisValue.call(this, value, text);
|
38332
|
+
}
|
38333
|
+
};
|
38219
38334
|
QuestionDropdownModel.prototype.onVisibleChoicesChanged = function () {
|
38220
38335
|
_super.prototype.onVisibleChoicesChanged.call(this);
|
38221
38336
|
if (this.popupModel) {
|
@@ -38476,9 +38591,7 @@ var QuestionExpressionModel = /** @class */ (function (_super) {
|
|
38476
38591
|
this.expressionRunner = new _conditions__WEBPACK_IMPORTED_MODULE_4__["ExpressionRunner"](this.expression);
|
38477
38592
|
}
|
38478
38593
|
this.expressionRunner.onRunComplete = function (newValue) {
|
38479
|
-
|
38480
|
-
_this.value = newValue;
|
38481
|
-
}
|
38594
|
+
_this.value = newValue;
|
38482
38595
|
_this.unlocCalculation();
|
38483
38596
|
};
|
38484
38597
|
this.expressionRunner.run(values, properties);
|
@@ -46034,7 +46147,13 @@ var QuestionMatrixDynamicModel = /** @class */ (function (_super) {
|
|
46034
46147
|
};
|
46035
46148
|
QuestionMatrixDynamicModel.prototype.isBanStartDrag = function (pointerDownEvent) {
|
46036
46149
|
var target = pointerDownEvent.target;
|
46037
|
-
return target.getAttribute("contenteditable") === "true" || target.nodeName === "INPUT";
|
46150
|
+
return target.getAttribute("contenteditable") === "true" || target.nodeName === "INPUT" || !this.isDragHandleAreaValid(target);
|
46151
|
+
};
|
46152
|
+
QuestionMatrixDynamicModel.prototype.isDragHandleAreaValid = function (node) {
|
46153
|
+
if (this.survey.matrixDragHandleArea === "icon") {
|
46154
|
+
return node.classList.contains(this.cssClasses.dragElementDecorator);
|
46155
|
+
}
|
46156
|
+
return true;
|
46038
46157
|
};
|
46039
46158
|
QuestionMatrixDynamicModel.prototype.onPointerDown = function (pointerDownEvent, row) {
|
46040
46159
|
if (!row || !this.allowRowsDragAndDrop)
|
@@ -51276,7 +51395,7 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
51276
51395
|
QuestionRatingModel.prototype.initColors = function () {
|
51277
51396
|
if (this.colorMode === "monochrome")
|
51278
51397
|
return;
|
51279
|
-
if (!document)
|
51398
|
+
if (typeof document === "undefined" || !document)
|
51280
51399
|
return;
|
51281
51400
|
if (QuestionRatingModel.badColor && QuestionRatingModel.normalColor && QuestionRatingModel.goodColor)
|
51282
51401
|
return;
|
@@ -52341,7 +52460,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
52341
52460
|
/* harmony import */ var _question_checkbox__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./question_checkbox */ "./src/question_checkbox.ts");
|
52342
52461
|
/* harmony import */ var _dropdownMultiSelectListModel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./dropdownMultiSelectListModel */ "./src/dropdownMultiSelectListModel.ts");
|
52343
52462
|
/* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./settings */ "./src/settings.ts");
|
52344
|
-
/* harmony import */ var _itemvalue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./itemvalue */ "./src/itemvalue.ts");
|
52345
52463
|
var __extends = (undefined && undefined.__extends) || (function () {
|
52346
52464
|
var extendStatics = function (d, b) {
|
52347
52465
|
extendStatics = Object.setPrototypeOf ||
|
@@ -52369,7 +52487,6 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
52369
52487
|
|
52370
52488
|
|
52371
52489
|
|
52372
|
-
|
52373
52490
|
/**
|
52374
52491
|
* A Model for a tagbox question
|
52375
52492
|
*
|
@@ -52494,6 +52611,15 @@ var QuestionTagboxModel = /** @class */ (function (_super) {
|
|
52494
52611
|
this.dropdownListModel.updateItems();
|
52495
52612
|
}
|
52496
52613
|
};
|
52614
|
+
QuestionTagboxModel.prototype.getItemIfChoicesNotContainThisValue = function (value, text) {
|
52615
|
+
var _a;
|
52616
|
+
if (this.choicesLazyLoadEnabled && !((_a = this.dropdownListModel) === null || _a === void 0 ? void 0 : _a.isAllDataLoaded)) {
|
52617
|
+
return this.createItemValue(value, text);
|
52618
|
+
}
|
52619
|
+
else {
|
52620
|
+
return _super.prototype.getItemIfChoicesNotContainThisValue.call(this, value, text);
|
52621
|
+
}
|
52622
|
+
};
|
52497
52623
|
QuestionTagboxModel.prototype.validateItemValues = function (itemValues) {
|
52498
52624
|
var _this = this;
|
52499
52625
|
this.updateItemDisplayNameMap();
|
@@ -52507,7 +52633,10 @@ var QuestionTagboxModel = /** @class */ (function (_super) {
|
|
52507
52633
|
}
|
52508
52634
|
var itemValueValues = itemValues.map(function (iV) { return iV.value; });
|
52509
52635
|
val.filter(function (item) { return itemValueValues.indexOf(item) === -1; }).forEach(function (item) {
|
52510
|
-
|
52636
|
+
var newItem = _this.getItemIfChoicesNotContainThisValue(item, _this.itemDisplayNameMap[item]);
|
52637
|
+
if (newItem) {
|
52638
|
+
itemValues.push(newItem);
|
52639
|
+
}
|
52511
52640
|
});
|
52512
52641
|
itemValues.sort(function (a, b) { return val.indexOf(a.value) - val.indexOf(b.value); });
|
52513
52642
|
return itemValues;
|
@@ -53604,7 +53733,7 @@ var QuestionTextBase = /** @class */ (function (_super) {
|
|
53604
53733
|
});
|
53605
53734
|
Object.defineProperty(QuestionTextBase.prototype, "a11y_input_ariaLabel", {
|
53606
53735
|
get: function () {
|
53607
|
-
if (this.hasTitle) {
|
53736
|
+
if (this.hasTitle && !this.parentQuestion) {
|
53608
53737
|
return null;
|
53609
53738
|
}
|
53610
53739
|
else {
|
@@ -53616,7 +53745,7 @@ var QuestionTextBase = /** @class */ (function (_super) {
|
|
53616
53745
|
});
|
53617
53746
|
Object.defineProperty(QuestionTextBase.prototype, "a11y_input_ariaLabelledBy", {
|
53618
53747
|
get: function () {
|
53619
|
-
if (this.hasTitle) {
|
53748
|
+
if (this.hasTitle && !this.parentQuestion) {
|
53620
53749
|
return this.ariaTitleId;
|
53621
53750
|
}
|
53622
53751
|
else {
|
@@ -58250,14 +58379,10 @@ var Survey = /** @class */ (function (_super) {
|
|
58250
58379
|
}
|
58251
58380
|
var rootCss = this.survey.getRootCss();
|
58252
58381
|
var cssClasses = this.rootNodeClassName ? this.rootNodeClassName + " " + rootCss : rootCss;
|
58253
|
-
var rootStyle = {
|
58254
|
-
backgroundImage: this.survey.renderBackgroundImage,
|
58255
|
-
backgroundSize: this.survey.backgroundImageFit
|
58256
|
-
};
|
58257
58382
|
var formStyle = {
|
58258
58383
|
backgroundColor: this.survey.renderBackgroundOpacity
|
58259
58384
|
};
|
58260
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: this.rootNodeId, ref: this.rootRef, className: cssClasses, style:
|
58385
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: this.rootNodeId, ref: this.rootRef, className: cssClasses, style: this.survey.themeVariables },
|
58261
58386
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("form", { onSubmit: onSubmit, style: formStyle },
|
58262
58387
|
customHeader,
|
58263
58388
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.container },
|
@@ -64641,7 +64766,7 @@ var SurveyElement = /** @class */ (function (_super) {
|
|
64641
64766
|
return _super.prototype.canRunConditions.call(this) && !!this.data;
|
64642
64767
|
};
|
64643
64768
|
SurveyElement.prototype.getDataFilteredValues = function () {
|
64644
|
-
return !!this.data ? this.data.getFilteredValues() :
|
64769
|
+
return !!this.data ? this.data.getFilteredValues() : {};
|
64645
64770
|
};
|
64646
64771
|
SurveyElement.prototype.getDataFilteredProperties = function () {
|
64647
64772
|
var props = !!this.data ? this.data.getFilteredProperties() : {};
|
@@ -64780,6 +64905,7 @@ var SurveyElement = /** @class */ (function (_super) {
|
|
64780
64905
|
* - [`onUpdateChoiceItemCss`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onUpdateChoiceItemCss)
|
64781
64906
|
*/
|
64782
64907
|
get: function () {
|
64908
|
+
var _dummy = this.cssClassesValue;
|
64783
64909
|
if (!this.survey)
|
64784
64910
|
return this.calcCssClasses(this.css);
|
64785
64911
|
this.ensureCssClassesValue();
|
@@ -66146,6 +66272,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
66146
66272
|
*/
|
66147
66273
|
_this.hideRequiredErrors = false;
|
66148
66274
|
//#endregion
|
66275
|
+
_this.cssVariables = {};
|
66149
66276
|
_this._isMobile = false;
|
66150
66277
|
_this._isCompact = false;
|
66151
66278
|
_this._isDesignMode = false;
|
@@ -67538,6 +67665,16 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
67538
67665
|
enumerable: false,
|
67539
67666
|
configurable: true
|
67540
67667
|
});
|
67668
|
+
Object.defineProperty(SurveyModel.prototype, "themeVariables", {
|
67669
|
+
get: function () {
|
67670
|
+
var result = Object.assign({}, this.cssVariables);
|
67671
|
+
result.backgroundImage = this.renderBackgroundImage;
|
67672
|
+
result.backgroundSize = this.backgroundImageFit;
|
67673
|
+
return result;
|
67674
|
+
},
|
67675
|
+
enumerable: false,
|
67676
|
+
configurable: true
|
67677
|
+
});
|
67541
67678
|
SurveyModel.prototype.setIsMobile = function (newVal) {
|
67542
67679
|
if (newVal === void 0) { newVal = true; }
|
67543
67680
|
if (this.isMobile !== newVal) {
|
@@ -68796,6 +68933,24 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
68796
68933
|
enumerable: false,
|
68797
68934
|
configurable: true
|
68798
68935
|
});
|
68936
|
+
Object.defineProperty(SurveyModel.prototype, "matrixDragHandleArea", {
|
68937
|
+
/**
|
68938
|
+
* Specifies which part of a choice item responds to a drag gesture in MatrixDynamic questions.
|
68939
|
+
*
|
68940
|
+
* Possible values:
|
68941
|
+
*
|
68942
|
+
* - `"entireItem"` (default) - Users can use the entire choice item as a drag handle.
|
68943
|
+
* - `"icon"` - Users can only use the choice item icon as a drag handle.
|
68944
|
+
*/
|
68945
|
+
get: function () {
|
68946
|
+
return this.getPropertyValue("matrixDragHandleArea", "entireItem");
|
68947
|
+
},
|
68948
|
+
set: function (val) {
|
68949
|
+
this.setPropertyValue("matrixDragHandleArea", val);
|
68950
|
+
},
|
68951
|
+
enumerable: false,
|
68952
|
+
configurable: true
|
68953
|
+
});
|
68799
68954
|
Object.defineProperty(SurveyModel.prototype, "isShowingPage", {
|
68800
68955
|
/**
|
68801
68956
|
* Survey is showing a page right now. It is in "running", "preview" or starting state.
|
@@ -69727,7 +69882,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
69727
69882
|
return false;
|
69728
69883
|
if (doComplete) {
|
69729
69884
|
this.currentPage.passed = true;
|
69730
|
-
return this.doComplete();
|
69885
|
+
return this.doComplete(this.canBeCompletedByTrigger);
|
69731
69886
|
}
|
69732
69887
|
this.doNextPage();
|
69733
69888
|
return true;
|
@@ -72935,6 +73090,14 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
72935
73090
|
}
|
72936
73091
|
return containerLayoutElements;
|
72937
73092
|
};
|
73093
|
+
SurveyModel.prototype.applyTheme = function (theme) {
|
73094
|
+
var _this = this;
|
73095
|
+
if (!theme)
|
73096
|
+
return;
|
73097
|
+
Object.keys(theme).forEach(function (key) {
|
73098
|
+
_this[key] = theme[key];
|
73099
|
+
});
|
73100
|
+
};
|
72938
73101
|
/**
|
72939
73102
|
* Use this method to dispose survey model properly.
|
72940
73103
|
*/
|
@@ -72966,6 +73129,12 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
72966
73129
|
__decorate([
|
72967
73130
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
72968
73131
|
], SurveyModel.prototype, "showBrandInfo", void 0);
|
73132
|
+
__decorate([
|
73133
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: {} })
|
73134
|
+
], SurveyModel.prototype, "cssVariables", void 0);
|
73135
|
+
__decorate([
|
73136
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
73137
|
+
], SurveyModel.prototype, "backgroundImagePosition", void 0);
|
72969
73138
|
__decorate([
|
72970
73139
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
72971
73140
|
], SurveyModel.prototype, "_isMobile", void 0);
|
@@ -73087,6 +73256,12 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].addClass("survey", [
|
|
73087
73256
|
default: "initial",
|
73088
73257
|
choices: ["initial", "random"],
|
73089
73258
|
},
|
73259
|
+
{
|
73260
|
+
name: "matrixDragHandleArea",
|
73261
|
+
visible: false,
|
73262
|
+
default: "entireItem",
|
73263
|
+
choices: ["entireItem", "icon"]
|
73264
|
+
},
|
73090
73265
|
"showPageNumbers:boolean",
|
73091
73266
|
{
|
73092
73267
|
name: "showQuestionNumbers",
|
@@ -74122,6 +74297,20 @@ var QuestionTextProcessor = /** @class */ (function () {
|
|
74122
74297
|
|
74123
74298
|
|
74124
74299
|
|
74300
|
+
/***/ }),
|
74301
|
+
|
74302
|
+
/***/ "./src/themes.ts":
|
74303
|
+
/*!***********************!*\
|
74304
|
+
!*** ./src/themes.ts ***!
|
74305
|
+
\***********************/
|
74306
|
+
/*! no exports provided */
|
74307
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
74308
|
+
|
74309
|
+
"use strict";
|
74310
|
+
__webpack_require__.r(__webpack_exports__);
|
74311
|
+
|
74312
|
+
|
74313
|
+
|
74125
74314
|
/***/ }),
|
74126
74315
|
|
74127
74316
|
/***/ "./src/trigger.ts":
|