survey-react 1.9.90 → 1.9.92

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/survey.react.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.90
2
+ * surveyjs - Survey JavaScript library v1.9.92
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.getPropertyValueCore(this.propertyHash, name);
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: 1000;\n font-family: var(--font-family, $font-family);\n ";
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: 1000;\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 ";
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: 1000;\n font-family: var(--font-family, $font-family);\n ";
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: 1000;\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 ";
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);
@@ -7246,11 +7249,9 @@ var DropdownListModel = /** @class */ (function (_super) {
7246
7249
  question.onPropertyChanged.add(function (sender, options) {
7247
7250
  if (options.name == "value") {
7248
7251
  _this.showInputFieldComponent = _this.question.showInputFieldComponent;
7249
- _this.showSelectedItemLocText = _this.question.showSelectedItemLocText;
7250
7252
  }
7251
7253
  });
7252
7254
  _this.showInputFieldComponent = _this.question.showInputFieldComponent;
7253
- _this.showSelectedItemLocText = _this.question.showSelectedItemLocText;
7254
7255
  _this.listModel = _this.createListModel();
7255
7256
  _this.updateAfterListModelCreated(_this.listModel);
7256
7257
  _this.setSearchEnabled(_this.question.searchEnabled);
@@ -7317,6 +7318,7 @@ var DropdownListModel = /** @class */ (function (_super) {
7317
7318
  this._popupModel = new _popup__WEBPACK_IMPORTED_MODULE_3__["PopupModel"]("sv-list", { model: this.listModel }, "bottom", "center", false);
7318
7319
  this._popupModel.displayMode = _utils_devices__WEBPACK_IMPORTED_MODULE_6__["IsTouch"] ? "overlay" : "popup";
7319
7320
  this._popupModel.positionMode = "fixed";
7321
+ this._popupModel.isFocusedContainer = false;
7320
7322
  this._popupModel.isFocusedContent = _utils_devices__WEBPACK_IMPORTED_MODULE_6__["IsTouch"];
7321
7323
  this._popupModel.setWidthByTarget = !_utils_devices__WEBPACK_IMPORTED_MODULE_6__["IsTouch"];
7322
7324
  this.updatePopupFocusFirstInputSelector();
@@ -7435,6 +7437,13 @@ var DropdownListModel = /** @class */ (function (_super) {
7435
7437
  updateAfterFilterStringChanged();
7436
7438
  }
7437
7439
  };
7440
+ Object.defineProperty(DropdownListModel.prototype, "isAllDataLoaded", {
7441
+ get: function () {
7442
+ return !!this.itemsSettings.totalCount && this.itemsSettings.items.length == this.itemsSettings.totalCount;
7443
+ },
7444
+ enumerable: false,
7445
+ configurable: true
7446
+ });
7438
7447
  DropdownListModel.prototype.applyInputString = function (item) {
7439
7448
  var hasHtml = item === null || item === void 0 ? void 0 : item.locText.hasHtml;
7440
7449
  if (hasHtml || this.question.inputFieldComponentName) {
@@ -7758,13 +7767,9 @@ var DropdownListModel = /** @class */ (function (_super) {
7758
7767
  defaultValue: "",
7759
7768
  onSet: function (newValue, target) {
7760
7769
  target.question.inputHasValue = !!newValue;
7761
- target.showSelectedItemLocText = target.question.showSelectedItemLocText;
7762
7770
  }
7763
7771
  })
7764
7772
  ], DropdownListModel.prototype, "inputString", void 0);
7765
- __decorate([
7766
- Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({})
7767
- ], DropdownListModel.prototype, "showSelectedItemLocText", void 0);
7768
7773
  __decorate([
7769
7774
  Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({})
7770
7775
  ], DropdownListModel.prototype, "showInputFieldComponent", void 0);
@@ -8635,148 +8640,149 @@ __webpack_require__.r(__webpack_exports__);
8635
8640
  /* harmony import */ var _surveyProgressButtons__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../../surveyProgressButtons */ "./src/surveyProgressButtons.ts");
8636
8641
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressButtonsModel", function() { return _surveyProgressButtons__WEBPACK_IMPORTED_MODULE_57__["SurveyProgressButtonsModel"]; });
8637
8642
 
8638
- /* harmony import */ var _survey__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../../survey */ "./src/survey.ts");
8639
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyModel", function() { return _survey__WEBPACK_IMPORTED_MODULE_58__["SurveyModel"]; });
8643
+ /* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../../themes */ "./src/themes.ts");
8644
+ /* empty/unused harmony star reexport *//* harmony import */ var _survey__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../../survey */ "./src/survey.ts");
8645
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyModel", function() { return _survey__WEBPACK_IMPORTED_MODULE_59__["SurveyModel"]; });
8640
8646
 
8641
- /* harmony import */ var _trigger__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../../trigger */ "./src/trigger.ts");
8642
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTrigger", function() { return _trigger__WEBPACK_IMPORTED_MODULE_59__["SurveyTrigger"]; });
8647
+ /* harmony import */ var _trigger__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ../../trigger */ "./src/trigger.ts");
8648
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTrigger", function() { return _trigger__WEBPACK_IMPORTED_MODULE_60__["SurveyTrigger"]; });
8643
8649
 
8644
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTriggerComplete", function() { return _trigger__WEBPACK_IMPORTED_MODULE_59__["SurveyTriggerComplete"]; });
8650
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTriggerComplete", function() { return _trigger__WEBPACK_IMPORTED_MODULE_60__["SurveyTriggerComplete"]; });
8645
8651
 
8646
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTriggerSetValue", function() { return _trigger__WEBPACK_IMPORTED_MODULE_59__["SurveyTriggerSetValue"]; });
8652
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTriggerSetValue", function() { return _trigger__WEBPACK_IMPORTED_MODULE_60__["SurveyTriggerSetValue"]; });
8647
8653
 
8648
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTriggerVisible", function() { return _trigger__WEBPACK_IMPORTED_MODULE_59__["SurveyTriggerVisible"]; });
8654
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTriggerVisible", function() { return _trigger__WEBPACK_IMPORTED_MODULE_60__["SurveyTriggerVisible"]; });
8649
8655
 
8650
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTriggerCopyValue", function() { return _trigger__WEBPACK_IMPORTED_MODULE_59__["SurveyTriggerCopyValue"]; });
8656
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTriggerCopyValue", function() { return _trigger__WEBPACK_IMPORTED_MODULE_60__["SurveyTriggerCopyValue"]; });
8651
8657
 
8652
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTriggerRunExpression", function() { return _trigger__WEBPACK_IMPORTED_MODULE_59__["SurveyTriggerRunExpression"]; });
8658
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTriggerRunExpression", function() { return _trigger__WEBPACK_IMPORTED_MODULE_60__["SurveyTriggerRunExpression"]; });
8653
8659
 
8654
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Trigger", function() { return _trigger__WEBPACK_IMPORTED_MODULE_59__["Trigger"]; });
8660
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Trigger", function() { return _trigger__WEBPACK_IMPORTED_MODULE_60__["Trigger"]; });
8655
8661
 
8656
- /* harmony import */ var _popup_survey__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ../../popup-survey */ "./src/popup-survey.ts");
8657
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupSurveyModel", function() { return _popup_survey__WEBPACK_IMPORTED_MODULE_60__["PopupSurveyModel"]; });
8662
+ /* harmony import */ var _popup_survey__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ../../popup-survey */ "./src/popup-survey.ts");
8663
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupSurveyModel", function() { return _popup_survey__WEBPACK_IMPORTED_MODULE_61__["PopupSurveyModel"]; });
8658
8664
 
8659
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyWindowModel", function() { return _popup_survey__WEBPACK_IMPORTED_MODULE_60__["SurveyWindowModel"]; });
8665
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyWindowModel", function() { return _popup_survey__WEBPACK_IMPORTED_MODULE_61__["SurveyWindowModel"]; });
8660
8666
 
8661
- /* harmony import */ var _textPreProcessor__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ../../textPreProcessor */ "./src/textPreProcessor.ts");
8662
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextPreProcessor", function() { return _textPreProcessor__WEBPACK_IMPORTED_MODULE_61__["TextPreProcessor"]; });
8667
+ /* harmony import */ var _textPreProcessor__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ../../textPreProcessor */ "./src/textPreProcessor.ts");
8668
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextPreProcessor", function() { return _textPreProcessor__WEBPACK_IMPORTED_MODULE_62__["TextPreProcessor"]; });
8663
8669
 
8664
- /* harmony import */ var _notifier__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ../../notifier */ "./src/notifier.ts");
8665
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Notifier", function() { return _notifier__WEBPACK_IMPORTED_MODULE_62__["Notifier"]; });
8670
+ /* harmony import */ var _notifier__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ../../notifier */ "./src/notifier.ts");
8671
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Notifier", function() { return _notifier__WEBPACK_IMPORTED_MODULE_63__["Notifier"]; });
8666
8672
 
8667
- /* harmony import */ var _dxSurveyService__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ../../dxSurveyService */ "./src/dxSurveyService.ts");
8668
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dxSurveyService", function() { return _dxSurveyService__WEBPACK_IMPORTED_MODULE_63__["dxSurveyService"]; });
8673
+ /* harmony import */ var _dxSurveyService__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ../../dxSurveyService */ "./src/dxSurveyService.ts");
8674
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dxSurveyService", function() { return _dxSurveyService__WEBPACK_IMPORTED_MODULE_64__["dxSurveyService"]; });
8669
8675
 
8670
- /* harmony import */ var _localization_english__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ../../localization/english */ "./src/localization/english.ts");
8671
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "englishStrings", function() { return _localization_english__WEBPACK_IMPORTED_MODULE_64__["englishStrings"]; });
8676
+ /* harmony import */ var _localization_english__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ../../localization/english */ "./src/localization/english.ts");
8677
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "englishStrings", function() { return _localization_english__WEBPACK_IMPORTED_MODULE_65__["englishStrings"]; });
8672
8678
 
8673
- /* harmony import */ var _surveyStrings__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ../../surveyStrings */ "./src/surveyStrings.ts");
8674
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "surveyLocalization", function() { return _surveyStrings__WEBPACK_IMPORTED_MODULE_65__["surveyLocalization"]; });
8679
+ /* harmony import */ var _surveyStrings__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ../../surveyStrings */ "./src/surveyStrings.ts");
8680
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "surveyLocalization", function() { return _surveyStrings__WEBPACK_IMPORTED_MODULE_66__["surveyLocalization"]; });
8675
8681
 
8676
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "surveyStrings", function() { return _surveyStrings__WEBPACK_IMPORTED_MODULE_65__["surveyStrings"]; });
8682
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "surveyStrings", function() { return _surveyStrings__WEBPACK_IMPORTED_MODULE_66__["surveyStrings"]; });
8677
8683
 
8678
- /* harmony import */ var _questionCustomWidgets__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ../../questionCustomWidgets */ "./src/questionCustomWidgets.ts");
8679
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionCustomWidget", function() { return _questionCustomWidgets__WEBPACK_IMPORTED_MODULE_66__["QuestionCustomWidget"]; });
8684
+ /* harmony import */ var _questionCustomWidgets__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ../../questionCustomWidgets */ "./src/questionCustomWidgets.ts");
8685
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionCustomWidget", function() { return _questionCustomWidgets__WEBPACK_IMPORTED_MODULE_67__["QuestionCustomWidget"]; });
8680
8686
 
8681
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CustomWidgetCollection", function() { return _questionCustomWidgets__WEBPACK_IMPORTED_MODULE_66__["CustomWidgetCollection"]; });
8687
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CustomWidgetCollection", function() { return _questionCustomWidgets__WEBPACK_IMPORTED_MODULE_67__["CustomWidgetCollection"]; });
8682
8688
 
8683
- /* harmony import */ var _question_custom__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ../../question_custom */ "./src/question_custom.ts");
8684
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionCustomModel", function() { return _question_custom__WEBPACK_IMPORTED_MODULE_67__["QuestionCustomModel"]; });
8689
+ /* harmony import */ var _question_custom__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ../../question_custom */ "./src/question_custom.ts");
8690
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionCustomModel", function() { return _question_custom__WEBPACK_IMPORTED_MODULE_68__["QuestionCustomModel"]; });
8685
8691
 
8686
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionCompositeModel", function() { return _question_custom__WEBPACK_IMPORTED_MODULE_67__["QuestionCompositeModel"]; });
8692
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionCompositeModel", function() { return _question_custom__WEBPACK_IMPORTED_MODULE_68__["QuestionCompositeModel"]; });
8687
8693
 
8688
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentQuestionJSON", function() { return _question_custom__WEBPACK_IMPORTED_MODULE_67__["ComponentQuestionJSON"]; });
8694
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentQuestionJSON", function() { return _question_custom__WEBPACK_IMPORTED_MODULE_68__["ComponentQuestionJSON"]; });
8689
8695
 
8690
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentCollection", function() { return _question_custom__WEBPACK_IMPORTED_MODULE_67__["ComponentCollection"]; });
8696
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentCollection", function() { return _question_custom__WEBPACK_IMPORTED_MODULE_68__["ComponentCollection"]; });
8691
8697
 
8692
- /* harmony import */ var _stylesmanager__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ../../stylesmanager */ "./src/stylesmanager.ts");
8693
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StylesManager", function() { return _stylesmanager__WEBPACK_IMPORTED_MODULE_68__["StylesManager"]; });
8698
+ /* harmony import */ var _stylesmanager__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ../../stylesmanager */ "./src/stylesmanager.ts");
8699
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StylesManager", function() { return _stylesmanager__WEBPACK_IMPORTED_MODULE_69__["StylesManager"]; });
8694
8700
 
8695
- /* harmony import */ var _list__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ../../list */ "./src/list.ts");
8696
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListModel", function() { return _list__WEBPACK_IMPORTED_MODULE_69__["ListModel"]; });
8701
+ /* harmony import */ var _list__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ../../list */ "./src/list.ts");
8702
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListModel", function() { return _list__WEBPACK_IMPORTED_MODULE_70__["ListModel"]; });
8697
8703
 
8698
- /* harmony import */ var _multiSelectListModel__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ../../multiSelectListModel */ "./src/multiSelectListModel.ts");
8699
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MultiSelectListModel", function() { return _multiSelectListModel__WEBPACK_IMPORTED_MODULE_70__["MultiSelectListModel"]; });
8704
+ /* harmony import */ var _multiSelectListModel__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ../../multiSelectListModel */ "./src/multiSelectListModel.ts");
8705
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MultiSelectListModel", function() { return _multiSelectListModel__WEBPACK_IMPORTED_MODULE_71__["MultiSelectListModel"]; });
8700
8706
 
8701
- /* harmony import */ var _popup__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ../../popup */ "./src/popup.ts");
8702
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupModel", function() { return _popup__WEBPACK_IMPORTED_MODULE_71__["PopupModel"]; });
8707
+ /* harmony import */ var _popup__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ../../popup */ "./src/popup.ts");
8708
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupModel", function() { return _popup__WEBPACK_IMPORTED_MODULE_72__["PopupModel"]; });
8703
8709
 
8704
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createDialogOptions", function() { return _popup__WEBPACK_IMPORTED_MODULE_71__["createDialogOptions"]; });
8710
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createDialogOptions", function() { return _popup__WEBPACK_IMPORTED_MODULE_72__["createDialogOptions"]; });
8705
8711
 
8706
- /* harmony import */ var _popup_view_model__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ../../popup-view-model */ "./src/popup-view-model.ts");
8707
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupBaseViewModel", function() { return _popup_view_model__WEBPACK_IMPORTED_MODULE_72__["PopupBaseViewModel"]; });
8712
+ /* harmony import */ var _popup_view_model__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ../../popup-view-model */ "./src/popup-view-model.ts");
8713
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupBaseViewModel", function() { return _popup_view_model__WEBPACK_IMPORTED_MODULE_73__["PopupBaseViewModel"]; });
8708
8714
 
8709
- /* harmony import */ var _popup_dropdown_view_model__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ../../popup-dropdown-view-model */ "./src/popup-dropdown-view-model.ts");
8710
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupDropdownViewModel", function() { return _popup_dropdown_view_model__WEBPACK_IMPORTED_MODULE_73__["PopupDropdownViewModel"]; });
8715
+ /* harmony import */ var _popup_dropdown_view_model__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ../../popup-dropdown-view-model */ "./src/popup-dropdown-view-model.ts");
8716
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupDropdownViewModel", function() { return _popup_dropdown_view_model__WEBPACK_IMPORTED_MODULE_74__["PopupDropdownViewModel"]; });
8711
8717
 
8712
- /* harmony import */ var _popup_modal_view_model__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ../../popup-modal-view-model */ "./src/popup-modal-view-model.ts");
8713
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupModalViewModel", function() { return _popup_modal_view_model__WEBPACK_IMPORTED_MODULE_74__["PopupModalViewModel"]; });
8718
+ /* harmony import */ var _popup_modal_view_model__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ../../popup-modal-view-model */ "./src/popup-modal-view-model.ts");
8719
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupModalViewModel", function() { return _popup_modal_view_model__WEBPACK_IMPORTED_MODULE_75__["PopupModalViewModel"]; });
8714
8720
 
8715
- /* harmony import */ var _popup_utils__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ../../popup-utils */ "./src/popup-utils.ts");
8716
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createPopupViewModel", function() { return _popup_utils__WEBPACK_IMPORTED_MODULE_75__["createPopupViewModel"]; });
8721
+ /* harmony import */ var _popup_utils__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ../../popup-utils */ "./src/popup-utils.ts");
8722
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createPopupViewModel", function() { return _popup_utils__WEBPACK_IMPORTED_MODULE_76__["createPopupViewModel"]; });
8717
8723
 
8718
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createPopupModalViewModel", function() { return _popup_utils__WEBPACK_IMPORTED_MODULE_75__["createPopupModalViewModel"]; });
8724
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createPopupModalViewModel", function() { return _popup_utils__WEBPACK_IMPORTED_MODULE_76__["createPopupModalViewModel"]; });
8719
8725
 
8720
- /* harmony import */ var _dropdownListModel__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ../../dropdownListModel */ "./src/dropdownListModel.ts");
8721
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownListModel", function() { return _dropdownListModel__WEBPACK_IMPORTED_MODULE_76__["DropdownListModel"]; });
8726
+ /* harmony import */ var _dropdownListModel__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ../../dropdownListModel */ "./src/dropdownListModel.ts");
8727
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownListModel", function() { return _dropdownListModel__WEBPACK_IMPORTED_MODULE_77__["DropdownListModel"]; });
8722
8728
 
8723
- /* harmony import */ var _dropdownMultiSelectListModel__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ../../dropdownMultiSelectListModel */ "./src/dropdownMultiSelectListModel.ts");
8724
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownMultiSelectListModel", function() { return _dropdownMultiSelectListModel__WEBPACK_IMPORTED_MODULE_77__["DropdownMultiSelectListModel"]; });
8729
+ /* harmony import */ var _dropdownMultiSelectListModel__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ../../dropdownMultiSelectListModel */ "./src/dropdownMultiSelectListModel.ts");
8730
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownMultiSelectListModel", function() { return _dropdownMultiSelectListModel__WEBPACK_IMPORTED_MODULE_78__["DropdownMultiSelectListModel"]; });
8725
8731
 
8726
- /* harmony import */ var _question_buttongroup__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ../../question_buttongroup */ "./src/question_buttongroup.ts");
8727
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionButtonGroupModel", function() { return _question_buttongroup__WEBPACK_IMPORTED_MODULE_78__["QuestionButtonGroupModel"]; });
8732
+ /* harmony import */ var _question_buttongroup__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ../../question_buttongroup */ "./src/question_buttongroup.ts");
8733
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionButtonGroupModel", function() { return _question_buttongroup__WEBPACK_IMPORTED_MODULE_79__["QuestionButtonGroupModel"]; });
8728
8734
 
8729
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonGroupItemModel", function() { return _question_buttongroup__WEBPACK_IMPORTED_MODULE_78__["ButtonGroupItemModel"]; });
8735
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonGroupItemModel", function() { return _question_buttongroup__WEBPACK_IMPORTED_MODULE_79__["ButtonGroupItemModel"]; });
8730
8736
 
8731
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonGroupItemValue", function() { return _question_buttongroup__WEBPACK_IMPORTED_MODULE_78__["ButtonGroupItemValue"]; });
8737
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonGroupItemValue", function() { return _question_buttongroup__WEBPACK_IMPORTED_MODULE_79__["ButtonGroupItemValue"]; });
8732
8738
 
8733
- /* harmony import */ var _utils_devices__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ../../utils/devices */ "./src/utils/devices.ts");
8734
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IsMobile", function() { return _utils_devices__WEBPACK_IMPORTED_MODULE_79__["IsMobile"]; });
8739
+ /* harmony import */ var _utils_devices__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ../../utils/devices */ "./src/utils/devices.ts");
8740
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IsMobile", function() { return _utils_devices__WEBPACK_IMPORTED_MODULE_80__["IsMobile"]; });
8735
8741
 
8736
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IsTouch", function() { return _utils_devices__WEBPACK_IMPORTED_MODULE_79__["IsTouch"]; });
8742
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IsTouch", function() { return _utils_devices__WEBPACK_IMPORTED_MODULE_80__["IsTouch"]; });
8737
8743
 
8738
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_setIsTouch", function() { return _utils_devices__WEBPACK_IMPORTED_MODULE_79__["_setIsTouch"]; });
8744
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_setIsTouch", function() { return _utils_devices__WEBPACK_IMPORTED_MODULE_80__["_setIsTouch"]; });
8739
8745
 
8740
- /* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ../../utils/utils */ "./src/utils/utils.ts");
8741
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "confirmAction", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_80__["confirmAction"]; });
8746
+ /* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ../../utils/utils */ "./src/utils/utils.ts");
8747
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "confirmAction", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_81__["confirmAction"]; });
8742
8748
 
8743
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "detectIEOrEdge", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_80__["detectIEOrEdge"]; });
8749
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "detectIEOrEdge", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_81__["detectIEOrEdge"]; });
8744
8750
 
8745
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "doKey2ClickUp", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_80__["doKey2ClickUp"]; });
8751
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "doKey2ClickUp", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_81__["doKey2ClickUp"]; });
8746
8752
 
8747
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "doKey2ClickDown", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_80__["doKey2ClickDown"]; });
8753
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "doKey2ClickDown", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_81__["doKey2ClickDown"]; });
8748
8754
 
8749
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "doKey2ClickBlur", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_80__["doKey2ClickBlur"]; });
8755
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "doKey2ClickBlur", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_81__["doKey2ClickBlur"]; });
8750
8756
 
8751
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "loadFileFromBase64", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_80__["loadFileFromBase64"]; });
8757
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "loadFileFromBase64", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_81__["loadFileFromBase64"]; });
8752
8758
 
8753
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "increaseHeightByContent", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_80__["increaseHeightByContent"]; });
8759
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "increaseHeightByContent", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_81__["increaseHeightByContent"]; });
8754
8760
 
8755
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createSvg", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_80__["createSvg"]; });
8761
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createSvg", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_81__["createSvg"]; });
8756
8762
 
8757
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sanitizeEditableContent", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_80__["sanitizeEditableContent"]; });
8763
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sanitizeEditableContent", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_81__["sanitizeEditableContent"]; });
8758
8764
 
8759
- /* harmony import */ var _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ../../utils/cssClassBuilder */ "./src/utils/cssClassBuilder.ts");
8760
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CssClassBuilder", function() { return _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_81__["CssClassBuilder"]; });
8765
+ /* harmony import */ var _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ../../utils/cssClassBuilder */ "./src/utils/cssClassBuilder.ts");
8766
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CssClassBuilder", function() { return _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_82__["CssClassBuilder"]; });
8761
8767
 
8762
- /* harmony import */ var _defaultCss_defaultV2Css__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ../../defaultCss/defaultV2Css */ "./src/defaultCss/defaultV2Css.ts");
8763
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "surveyCss", function() { return _defaultCss_defaultV2Css__WEBPACK_IMPORTED_MODULE_82__["surveyCss"]; });
8768
+ /* harmony import */ var _defaultCss_defaultV2Css__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ../../defaultCss/defaultV2Css */ "./src/defaultCss/defaultV2Css.ts");
8769
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "surveyCss", function() { return _defaultCss_defaultV2Css__WEBPACK_IMPORTED_MODULE_83__["surveyCss"]; });
8764
8770
 
8765
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultV2Css", function() { return _defaultCss_defaultV2Css__WEBPACK_IMPORTED_MODULE_82__["defaultV2Css"]; });
8771
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultV2Css", function() { return _defaultCss_defaultV2Css__WEBPACK_IMPORTED_MODULE_83__["defaultV2Css"]; });
8766
8772
 
8767
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultV2ThemeName", function() { return _defaultCss_defaultV2Css__WEBPACK_IMPORTED_MODULE_82__["defaultV2ThemeName"]; });
8773
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultV2ThemeName", function() { return _defaultCss_defaultV2Css__WEBPACK_IMPORTED_MODULE_83__["defaultV2ThemeName"]; });
8768
8774
 
8769
- /* harmony import */ var _dragdrop_core__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ../../dragdrop/core */ "./src/dragdrop/core.ts");
8770
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DragDropCore", function() { return _dragdrop_core__WEBPACK_IMPORTED_MODULE_83__["DragDropCore"]; });
8775
+ /* harmony import */ var _dragdrop_core__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ../../dragdrop/core */ "./src/dragdrop/core.ts");
8776
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DragDropCore", function() { return _dragdrop_core__WEBPACK_IMPORTED_MODULE_84__["DragDropCore"]; });
8771
8777
 
8772
- /* harmony import */ var _dragdrop_choices__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ../../dragdrop/choices */ "./src/dragdrop/choices.ts");
8773
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DragDropChoices", function() { return _dragdrop_choices__WEBPACK_IMPORTED_MODULE_84__["DragDropChoices"]; });
8778
+ /* harmony import */ var _dragdrop_choices__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ../../dragdrop/choices */ "./src/dragdrop/choices.ts");
8779
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DragDropChoices", function() { return _dragdrop_choices__WEBPACK_IMPORTED_MODULE_85__["DragDropChoices"]; });
8774
8780
 
8775
8781
  // styles
8776
8782
  // import "../../main.scss";
8777
8783
  //import "../../modern.scss";
8778
8784
  var Version;
8779
- Version = "" + "1.9.90";
8785
+ Version = "" + "1.9.92";
8780
8786
  function checkLibraryVersion(ver, libraryName) {
8781
8787
  if (Version != ver) {
8782
8788
  var str = "survey-core has version '" + Version + "' and " + libraryName
@@ -8849,6 +8855,7 @@ function checkLibraryVersion(ver, libraryName) {
8849
8855
 
8850
8856
 
8851
8857
 
8858
+
8852
8859
 
8853
8860
 
8854
8861
  // export { cultureInfo } from "../../cultureInfo";
@@ -14740,6 +14747,14 @@ var OperandMaker = /** @class */ (function () {
14740
14747
  var opStr = OperandMaker.signs[operatorName];
14741
14748
  return opStr == null ? operatorName : opStr;
14742
14749
  };
14750
+ OperandMaker.convertValForDateCompare = function (val, second) {
14751
+ if (second instanceof Date && typeof val === "string") {
14752
+ var res = new Date(val);
14753
+ res.setHours(0, 0, 0);
14754
+ return res;
14755
+ }
14756
+ return val;
14757
+ };
14743
14758
  OperandMaker.unaryFunctions = {
14744
14759
  empty: function (value) {
14745
14760
  return _helpers__WEBPACK_IMPORTED_MODULE_0__["Helpers"].isValueEmpty(value);
@@ -14804,11 +14819,15 @@ var OperandMaker = /** @class */ (function () {
14804
14819
  greater: function (left, right) {
14805
14820
  if (left == null || right == null)
14806
14821
  return false;
14822
+ left = OperandMaker.convertValForDateCompare(left, right);
14823
+ right = OperandMaker.convertValForDateCompare(right, left);
14807
14824
  return left > right;
14808
14825
  },
14809
14826
  less: function (left, right) {
14810
14827
  if (left == null || right == null)
14811
14828
  return false;
14829
+ left = OperandMaker.convertValForDateCompare(left, right);
14830
+ right = OperandMaker.convertValForDateCompare(right, left);
14812
14831
  return left < right;
14813
14832
  },
14814
14833
  greaterorequal: function (left, right) {
@@ -14822,6 +14841,8 @@ var OperandMaker = /** @class */ (function () {
14822
14841
  return OperandMaker.binaryFunctions.less(left, right);
14823
14842
  },
14824
14843
  equal: function (left, right) {
14844
+ left = OperandMaker.convertValForDateCompare(left, right);
14845
+ right = OperandMaker.convertValForDateCompare(right, left);
14825
14846
  return OperandMaker.isTwoValueEquals(left, right);
14826
14847
  },
14827
14848
  notequal: function (left, right) {
@@ -16526,7 +16547,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
16526
16547
 
16527
16548
 
16528
16549
  /**
16529
- * Array of ItemValue is used in checkox, dropdown and radiogroup choices, matrix columns and rows.
16550
+ * Array of ItemValue is used in checkbox, dropdown and radiogroup choices, matrix columns and rows.
16530
16551
  * It has two main properties: value and text. If text is empty, value is used for displaying.
16531
16552
  * The text property is localizable and support markdown.
16532
16553
  */
@@ -17520,6 +17541,7 @@ var JsonObjectProperty = /** @class */ (function () {
17520
17541
  "categoryIndex",
17521
17542
  "visibleIndex",
17522
17543
  "nextToProperty",
17544
+ "overridingProperty",
17523
17545
  "showMode",
17524
17546
  "dependedProperties",
17525
17547
  "visibleIf",
@@ -17840,6 +17862,9 @@ var JsonMetadataClass = /** @class */ (function () {
17840
17862
  if (!_helpers__WEBPACK_IMPORTED_MODULE_2__["Helpers"].isValueEmpty(propInfo.nextToProperty)) {
17841
17863
  prop.nextToProperty = propInfo.nextToProperty;
17842
17864
  }
17865
+ if (!_helpers__WEBPACK_IMPORTED_MODULE_2__["Helpers"].isValueEmpty(propInfo.overridingProperty)) {
17866
+ prop.overridingProperty = propInfo.overridingProperty;
17867
+ }
17843
17868
  if (!_helpers__WEBPACK_IMPORTED_MODULE_2__["Helpers"].isValueEmpty(propInfo.visibleIndex)) {
17844
17869
  prop.visibleIndex = propInfo.visibleIndex;
17845
17870
  }
@@ -29381,7 +29406,7 @@ function setStyles() {
29381
29406
  ".sv-ranking--drag-handle-area-icon .sv-ranking-item__icon--hover": "cursor: pointer;",
29382
29407
  // EO ranking
29383
29408
  // 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: 1000; 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;",
29409
+ ".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
29410
  ".sv-matrixdynamic__drag-icon": "padding-top:14px",
29386
29411
  ".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
29412
  ".sv-matrix-row--drag-drop-ghost-mod td": "background-color: #f3f3f3;",
@@ -30367,6 +30392,13 @@ var PopupBaseViewModel = /** @class */ (function (_super) {
30367
30392
  enumerable: false,
30368
30393
  configurable: true
30369
30394
  });
30395
+ Object.defineProperty(PopupBaseViewModel.prototype, "isFocusedContainer", {
30396
+ get: function () {
30397
+ return this.model.isFocusedContainer;
30398
+ },
30399
+ enumerable: false,
30400
+ configurable: true
30401
+ });
30370
30402
  Object.defineProperty(PopupBaseViewModel.prototype, "showFooter", {
30371
30403
  get: function () {
30372
30404
  return this.getShowFooter();
@@ -30448,6 +30480,9 @@ var PopupBaseViewModel = /** @class */ (function (_super) {
30448
30480
  if (this.isFocusedContent) {
30449
30481
  this.focusFirstInput();
30450
30482
  }
30483
+ else if (this.isFocusedContainer) {
30484
+ this.focusContainer();
30485
+ }
30451
30486
  };
30452
30487
  PopupBaseViewModel.prototype.updateOnShowing = function () {
30453
30488
  this.prevActiveElement = _settings__WEBPACK_IMPORTED_MODULE_4__["settings"].environment.root.activeElement;
@@ -30461,6 +30496,11 @@ var PopupBaseViewModel = /** @class */ (function (_super) {
30461
30496
  this.prevActiveElement.focus();
30462
30497
  }
30463
30498
  };
30499
+ PopupBaseViewModel.prototype.focusContainer = function () {
30500
+ if (!this.container)
30501
+ return;
30502
+ this.container.children[0].focus();
30503
+ };
30464
30504
  PopupBaseViewModel.prototype.focusFirstInput = function () {
30465
30505
  var _this = this;
30466
30506
  setTimeout(function () {
@@ -30470,7 +30510,7 @@ var PopupBaseViewModel = /** @class */ (function (_super) {
30470
30510
  if (!!el)
30471
30511
  el.focus();
30472
30512
  else
30473
- _this.container.children[0].focus();
30513
+ _this.focusContainer();
30474
30514
  }, 100);
30475
30515
  };
30476
30516
  PopupBaseViewModel.prototype.clickOutside = function () {
@@ -30651,6 +30691,9 @@ var PopupModel = /** @class */ (function (_super) {
30651
30691
  __decorate([
30652
30692
  Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: true })
30653
30693
  ], PopupModel.prototype, "isFocusedContent", void 0);
30694
+ __decorate([
30695
+ Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: true })
30696
+ ], PopupModel.prototype, "isFocusedContainer", void 0);
30654
30697
  __decorate([
30655
30698
  Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: function () { } })
30656
30699
  ], PopupModel.prototype, "onCancel", void 0);
@@ -32213,7 +32256,7 @@ var Question = /** @class */ (function (_super) {
32213
32256
  });
32214
32257
  Object.defineProperty(Question.prototype, "questionValue", {
32215
32258
  get: function () {
32216
- return this.getPropertyValue("value");
32259
+ return this.getPropertyValueWithoutDefault("value");
32217
32260
  },
32218
32261
  set: function (val) {
32219
32262
  this.setPropertyValue("value", val);
@@ -32223,7 +32266,7 @@ var Question = /** @class */ (function (_super) {
32223
32266
  });
32224
32267
  Object.defineProperty(Question.prototype, "questionComment", {
32225
32268
  get: function () {
32226
- return this.getPropertyValue("comment");
32269
+ return this.getPropertyValueWithoutDefault("comment");
32227
32270
  },
32228
32271
  set: function (val) {
32229
32272
  this.setPropertyValue("comment", val);
@@ -32935,6 +32978,8 @@ var Question = /** @class */ (function (_super) {
32935
32978
  }
32936
32979
  };
32937
32980
  Question.prototype.setNewValue = function (newValue) {
32981
+ if (this.isNewValueEqualsToValue(newValue))
32982
+ return;
32938
32983
  var oldAnswered = this.isAnswered;
32939
32984
  this.setNewValueInData(newValue);
32940
32985
  this.allowNotifyValueChanged && this.onValueChanged();
@@ -32942,6 +32987,13 @@ var Question = /** @class */ (function (_super) {
32942
32987
  this.updateQuestionCss();
32943
32988
  }
32944
32989
  };
32990
+ Question.prototype.isNewValueEqualsToValue = function (newValue) {
32991
+ var val = this.value;
32992
+ if (!this.isTwoValueEquals(newValue, val))
32993
+ return false;
32994
+ var isObj = newValue === val && !!val && (Array.isArray(val) || typeof val === "object");
32995
+ return !isObj;
32996
+ };
32945
32997
  Question.prototype.isTextValue = function () {
32946
32998
  return false;
32947
32999
  };
@@ -33254,7 +33306,7 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].addClass("question", [
33254
33306
  default: "default",
33255
33307
  choices: ["default", "collapsed", "expanded"],
33256
33308
  },
33257
- { name: "visible:switch", default: true },
33309
+ { name: "visible:switch", default: true, overridingProperty: "visibleIf" },
33258
33310
  { name: "useDisplayValuesInDynamicTexts:boolean", alternativeName: "useDisplayValuesInTitle", default: true, layout: "row" },
33259
33311
  "visibleIf:condition",
33260
33312
  { name: "width" },
@@ -33336,13 +33388,13 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].addClass("question", [
33336
33388
  default: "default",
33337
33389
  choices: ["default", "none", "onComplete", "onHidden"],
33338
33390
  },
33339
- "isRequired:switch",
33391
+ { name: "isRequired:switch", overridingProperty: "requiredIf" },
33340
33392
  "requiredIf:condition",
33341
33393
  {
33342
33394
  name: "requiredErrorText:text",
33343
33395
  serializationProperty: "locRequiredErrorText",
33344
33396
  },
33345
- "readOnly:switch",
33397
+ { name: "readOnly:switch", overridingProperty: "enableIf" },
33346
33398
  {
33347
33399
  name: "validators:validators",
33348
33400
  baseClassName: "surveyvalidator",
@@ -33705,6 +33757,16 @@ var QuestionSelectBase = /** @class */ (function (_super) {
33705
33757
  res.text = text;
33706
33758
  return res;
33707
33759
  };
33760
+ Object.defineProperty(QuestionSelectBase.prototype, "isUsingCarryForward", {
33761
+ get: function () {
33762
+ return this.getPropertyValue("isUsingCarrayForward", false);
33763
+ },
33764
+ enumerable: false,
33765
+ configurable: true
33766
+ });
33767
+ QuestionSelectBase.prototype.setIsUsingCarrayForward = function (val) {
33768
+ this.setPropertyValue("isUsingCarrayForward", val);
33769
+ };
33708
33770
  QuestionSelectBase.prototype.supportGoNextPageError = function () {
33709
33771
  return !this.isOtherSelected || !!this.otherValue;
33710
33772
  };
@@ -33888,7 +33950,7 @@ var QuestionSelectBase = /** @class */ (function (_super) {
33888
33950
  };
33889
33951
  QuestionSelectBase.prototype.runCondition = function (values, properties) {
33890
33952
  _super.prototype.runCondition.call(this, values, properties);
33891
- if (this.isUsingCarrayForward)
33953
+ if (this.isUsingCarryForward)
33892
33954
  return;
33893
33955
  this.runItemsEnableCondition(values, properties);
33894
33956
  this.runItemsCondition(values, properties);
@@ -33958,7 +34020,18 @@ var QuestionSelectBase = /** @class */ (function (_super) {
33958
34020
  QuestionSelectBase.prototype.onEnableItemCallBack = function (item) {
33959
34021
  return true;
33960
34022
  };
33961
- QuestionSelectBase.prototype.onSelectedItemValuesChangedHandler = function (newValue) { };
34023
+ QuestionSelectBase.prototype.onSelectedItemValuesChangedHandler = function (newValue) {
34024
+ var _a;
34025
+ (_a = this.survey) === null || _a === void 0 ? void 0 : _a.loadedChoicesFromServer(this);
34026
+ };
34027
+ QuestionSelectBase.prototype.getItemIfChoicesNotContainThisValue = function (value, text) {
34028
+ if (!this.isReady) {
34029
+ return this.createItemValue(value, text);
34030
+ }
34031
+ else {
34032
+ return null;
34033
+ }
34034
+ };
33962
34035
  QuestionSelectBase.prototype.getSingleSelectedItem = function () {
33963
34036
  var selectedItemValues = this.selectedItemValues;
33964
34037
  if (this.isEmpty())
@@ -33968,9 +34041,12 @@ var QuestionSelectBase = /** @class */ (function (_super) {
33968
34041
  if (!itemValue && !selectedItemValues) {
33969
34042
  this.updateSelectedItemValues();
33970
34043
  }
33971
- return itemValue || selectedItemValues || (this.isOtherSelected ? this.otherItem : this.createItemValue(this.value));
34044
+ return itemValue || selectedItemValues || (this.isOtherSelected ? this.otherItem : this.getItemIfChoicesNotContainThisValue(this.value));
33972
34045
  };
33973
34046
  QuestionSelectBase.prototype.onGetSingleSelectedItem = function (selectedItemByValue) { };
34047
+ QuestionSelectBase.prototype.getMultipleSelectedItems = function () {
34048
+ return [];
34049
+ };
33974
34050
  QuestionSelectBase.prototype.setConditionalChoicesRunner = function () {
33975
34051
  if (this.choicesVisibleIf) {
33976
34052
  if (!this.conditionChoicesVisibleIfRunner) {
@@ -34307,10 +34383,12 @@ var QuestionSelectBase = /** @class */ (function (_super) {
34307
34383
  },
34308
34384
  set: function (val) {
34309
34385
  var question = this.getQuestionWithChoices();
34310
- if (!!question) {
34386
+ this.isLockVisibleChoices = !!question && question.name === val;
34387
+ if (!!question && question.name !== val) {
34311
34388
  question.removeFromDependedQuestion(this);
34312
34389
  }
34313
34390
  this.setPropertyValue("choicesFromQuestion", val);
34391
+ this.isLockVisibleChoices = false;
34314
34392
  },
34315
34393
  enumerable: false,
34316
34394
  configurable: true
@@ -34549,7 +34627,7 @@ var QuestionSelectBase = /** @class */ (function (_super) {
34549
34627
  if (!this.newItemValue) {
34550
34628
  this.newItemValue = this.createItemValue("newitem"); //TODO
34551
34629
  }
34552
- if (this.canShowOptionItem(this.newItemValue, isAddAll, false)) {
34630
+ if (!this.isUsingCarryForward && this.canShowOptionItem(this.newItemValue, isAddAll, false)) {
34553
34631
  items.push(this.newItemValue);
34554
34632
  }
34555
34633
  }
@@ -34631,17 +34709,28 @@ var QuestionSelectBase = /** @class */ (function (_super) {
34631
34709
  QuestionSelectBase.prototype.getChoicesDisplayValue = function (items, val) {
34632
34710
  if (val == this.otherItemValue.value)
34633
34711
  return this.otherValue ? this.otherValue : this.locOtherText.textOrHtml;
34712
+ var selItem = this.getSingleSelectedItem();
34713
+ if (!!selItem && selItem.value === val)
34714
+ return selItem.locText.textOrHtml;
34634
34715
  var str = _itemvalue__WEBPACK_IMPORTED_MODULE_3__["ItemValue"].getTextOrHtmlByValue(items, val);
34635
34716
  return str == "" && val ? val : str;
34636
34717
  };
34637
34718
  QuestionSelectBase.prototype.getDisplayArrayValue = function (keysAsText, value, onGetValueCallback) {
34638
34719
  var items = this.visibleChoices;
34639
34720
  var strs = [];
34721
+ var vals = [];
34640
34722
  for (var i = 0; i < value.length; i++) {
34641
- var val = !onGetValueCallback ? value[i] : onGetValueCallback(i);
34642
- var valStr = this.getChoicesDisplayValue(items, val);
34643
- if (valStr) {
34644
- strs.push(valStr);
34723
+ vals.push(!onGetValueCallback ? value[i] : onGetValueCallback(i));
34724
+ }
34725
+ if (_helpers__WEBPACK_IMPORTED_MODULE_8__["Helpers"].isTwoValueEquals(this.value, vals)) {
34726
+ this.getMultipleSelectedItems().forEach(function (item) { return strs.push(item.locText.textOrHtml); });
34727
+ }
34728
+ if (strs.length === 0) {
34729
+ for (var i = 0; i < vals.length; i++) {
34730
+ var valStr = this.getChoicesDisplayValue(items, vals[i]);
34731
+ if (valStr) {
34732
+ strs.push(valStr);
34733
+ }
34645
34734
  }
34646
34735
  }
34647
34736
  return strs.join(", ");
@@ -34654,8 +34743,8 @@ var QuestionSelectBase = /** @class */ (function (_super) {
34654
34743
  Object.defineProperty(QuestionSelectBase.prototype, "activeChoices", {
34655
34744
  get: function () {
34656
34745
  var question = this.getQuestionWithChoices();
34657
- this.isUsingCarrayForward = !!question;
34658
- if (this.isUsingCarrayForward) {
34746
+ this.setIsUsingCarrayForward(!!question);
34747
+ if (this.isUsingCarryForward) {
34659
34748
  this.addIntoDependedQuestion(question);
34660
34749
  return this.getChoicesFromQuestion(question);
34661
34750
  }
@@ -34671,6 +34760,8 @@ var QuestionSelectBase = /** @class */ (function (_super) {
34671
34760
  return !!res && !!res.visibleChoices && Array.isArray(res.dependedQuestions) && res !== this ? res : null;
34672
34761
  };
34673
34762
  QuestionSelectBase.prototype.getChoicesFromQuestion = function (question) {
34763
+ if (this.isDesignMode)
34764
+ return [];
34674
34765
  var res = [];
34675
34766
  var isSelected = this.choicesFromQuestionMode == "selected"
34676
34767
  ? true
@@ -34750,7 +34841,9 @@ var QuestionSelectBase = /** @class */ (function (_super) {
34750
34841
  errors.push(otherEmptyError);
34751
34842
  };
34752
34843
  QuestionSelectBase.prototype.setSurveyImpl = function (value, isLight) {
34844
+ this.isRunningChoices = true;
34753
34845
  _super.prototype.setSurveyImpl.call(this, value, isLight);
34846
+ this.isRunningChoices = false;
34754
34847
  this.runChoicesByUrl();
34755
34848
  if (this.isAddDefaultItems) {
34756
34849
  this.updateVisibleChoices();
@@ -34852,12 +34945,11 @@ var QuestionSelectBase = /** @class */ (function (_super) {
34852
34945
  if (this.enableOnLoadingChoices) {
34853
34946
  this.readOnly = false;
34854
34947
  }
34948
+ var errors = [];
34855
34949
  if (!this.isReadOnly) {
34856
- var errors = [];
34857
34950
  if (this.choicesByUrl && this.choicesByUrl.error) {
34858
34951
  errors.push(this.choicesByUrl.error);
34859
34952
  }
34860
- this.errors = errors;
34861
34953
  }
34862
34954
  var newChoices = null;
34863
34955
  var checkCachedValuesOnExisting = true;
@@ -34906,6 +34998,10 @@ var QuestionSelectBase = /** @class */ (function (_super) {
34906
34998
  }
34907
34999
  }
34908
35000
  }
35001
+ if (!this.isReadOnly && !newChoices && !this.isFirstLoadChoicesFromUrl) {
35002
+ this.value = null;
35003
+ }
35004
+ this.errors = errors;
34909
35005
  this.choicesLoaded();
34910
35006
  };
34911
35007
  QuestionSelectBase.prototype.createCachedValueForUrlRequests = function (val, checkOnExisting) {
@@ -34947,7 +35043,8 @@ var QuestionSelectBase = /** @class */ (function (_super) {
34947
35043
  return { value: value };
34948
35044
  };
34949
35045
  QuestionSelectBase.prototype.updateChoicesDependedQuestions = function () {
34950
- if (this.isLoadingFromJson || this.isUpdatingChoicesDependedQuestions)
35046
+ if (this.isLoadingFromJson || this.isUpdatingChoicesDependedQuestions ||
35047
+ !this.allowNotifyValueChanged || this.choicesByUrl.isRunning)
34951
35048
  return;
34952
35049
  this.isUpdatingChoicesDependedQuestions = true;
34953
35050
  for (var i = 0; i < this.dependedQuestions.length; i++) {
@@ -34962,7 +35059,7 @@ var QuestionSelectBase = /** @class */ (function (_super) {
34962
35059
  this.updateChoicesDependedQuestions();
34963
35060
  };
34964
35061
  QuestionSelectBase.prototype.onVisibleChoicesChanged = function () {
34965
- if (this.isLoadingFromJson)
35062
+ if (this.isLoadingFromJson || this.isLockVisibleChoices)
34966
35063
  return;
34967
35064
  this.updateVisibleChoices();
34968
35065
  this.onVisibleChanged();
@@ -34979,6 +35076,8 @@ var QuestionSelectBase = /** @class */ (function (_super) {
34979
35076
  return !filteredChoices || filteredChoices.length > 0;
34980
35077
  };
34981
35078
  QuestionSelectBase.prototype.sortVisibleChoices = function (array) {
35079
+ if (this.isDesignMode)
35080
+ return array;
34982
35081
  var order = this.choicesOrder.toLowerCase();
34983
35082
  if (order == "asc")
34984
35083
  return this.sortArray(array, 1);
@@ -36448,6 +36547,9 @@ var QuestionCheckboxModel = /** @class */ (function (_super) {
36448
36547
  enumerable: false,
36449
36548
  configurable: true
36450
36549
  });
36550
+ QuestionCheckboxModel.prototype.getMultipleSelectedItems = function () {
36551
+ return this.selectedChoices;
36552
+ };
36451
36553
  QuestionCheckboxModel.prototype.validateItemValues = function (itemValues) {
36452
36554
  if (!!itemValues.length)
36453
36555
  return itemValues;
@@ -37277,8 +37379,10 @@ var QuestionCustomModelBase = /** @class */ (function (_super) {
37277
37379
  el.disableDesignActions = true;
37278
37380
  };
37279
37381
  QuestionCustomModelBase.prototype.setSurveyImpl = function (value, isLight) {
37382
+ this.isSettingValOnLoading = true;
37280
37383
  _super.prototype.setSurveyImpl.call(this, value, isLight);
37281
37384
  this.initElement(this.getElement());
37385
+ this.isSettingValOnLoading = false;
37282
37386
  };
37283
37387
  QuestionCustomModelBase.prototype.onSurveyLoad = function () {
37284
37388
  _super.prototype.onSurveyLoad.call(this);
@@ -37713,6 +37817,7 @@ var QuestionCompositeModel = /** @class */ (function (_super) {
37713
37817
  _super.prototype.onReadOnlyChanged.call(this);
37714
37818
  };
37715
37819
  QuestionCompositeModel.prototype.onSurveyLoad = function () {
37820
+ this.isSettingValOnLoading = true;
37716
37821
  if (!!this.contentPanel) {
37717
37822
  this.contentPanel.readOnly = this.isReadOnly;
37718
37823
  this.setIsContentElement(this.contentPanel);
@@ -37724,6 +37829,7 @@ var QuestionCompositeModel = /** @class */ (function (_super) {
37724
37829
  this.value = val;
37725
37830
  }
37726
37831
  }
37832
+ this.isSettingValOnLoading = false;
37727
37833
  };
37728
37834
  QuestionCompositeModel.prototype.setIsContentElement = function (panel) {
37729
37835
  panel.isContentElement = true;
@@ -37765,21 +37871,30 @@ var QuestionCompositeModel = /** @class */ (function (_super) {
37765
37871
  return !!this.contentPanel ? this.contentPanel.getQuestionByName(name) : undefined;
37766
37872
  };
37767
37873
  QuestionCompositeModel.prototype.setValue = function (name, newValue, locNotification, allowNotifyValueChanged) {
37768
- if (this.settingNewValue)
37874
+ if (this.settingNewValue) {
37875
+ this.setNewValueIntoQuestion(name, newValue);
37769
37876
  return;
37877
+ }
37770
37878
  if (this.isValueChanging(name, newValue))
37771
37879
  return;
37772
37880
  this.settingNewValue = true;
37773
37881
  if (!this.isEditingSurveyElement && !!this.contentPanel) {
37774
- var panelValue = this.contentPanel.getValue();
37775
- if (!this.isTwoValueEquals(this.getValueCore(), panelValue)) {
37776
- this.setValueCore(panelValue);
37777
- }
37882
+ var index = 0;
37883
+ var maxTimes = this.contentPanel.questions.length + 1;
37884
+ while (index < maxTimes && this.updateValueCoreWithPanelValue())
37885
+ index++;
37778
37886
  }
37779
37887
  this.setNewValueIntoQuestion(name, newValue);
37780
37888
  _super.prototype.setValue.call(this, name, newValue, locNotification, allowNotifyValueChanged);
37781
37889
  this.settingNewValue = false;
37782
37890
  };
37891
+ QuestionCompositeModel.prototype.updateValueCoreWithPanelValue = function () {
37892
+ var panelValue = this.contentPanel.getValue();
37893
+ if (this.isTwoValueEquals(this.getValueCore(), panelValue))
37894
+ return false;
37895
+ this.setValueCore(panelValue);
37896
+ return true;
37897
+ };
37783
37898
  QuestionCompositeModel.prototype.setNewValueIntoQuestion = function (name, newValue) {
37784
37899
  var q = this.getQuestionByName(name);
37785
37900
  if (!!q && !this.isTwoValueEquals(newValue, q.value)) {
@@ -37823,6 +37938,7 @@ var QuestionCompositeModel = /** @class */ (function (_super) {
37823
37938
  QuestionCompositeModel.prototype.setValuesIntoQuestions = function (newValue) {
37824
37939
  if (!this.contentPanel)
37825
37940
  return;
37941
+ var oldSettingNewValue = this.settingNewValue;
37826
37942
  this.settingNewValue = true;
37827
37943
  var questions = this.contentPanel.questions;
37828
37944
  for (var i = 0; i < questions.length; i++) {
@@ -37833,8 +37949,7 @@ var QuestionCompositeModel = /** @class */ (function (_super) {
37833
37949
  q.value = val;
37834
37950
  }
37835
37951
  }
37836
- this.runCondition(this.getDataFilteredValues(), this.getDataFilteredProperties());
37837
- this.settingNewValue = false;
37952
+ this.settingNewValue = oldSettingNewValue;
37838
37953
  };
37839
37954
  QuestionCompositeModel.prototype.getDisplayValueCore = function (keyAsText, value) {
37840
37955
  return _super.prototype.getContentDisplayValueCore.call(this, keyAsText, value, this.contentPanel);
@@ -38202,6 +38317,7 @@ var QuestionDropdownModel = /** @class */ (function (_super) {
38202
38317
  QuestionDropdownModel.prototype.onSelectedItemValuesChangedHandler = function (newValue) {
38203
38318
  var _a;
38204
38319
  (_a = this.dropdownListModel) === null || _a === void 0 ? void 0 : _a.setInputStringFromSelectedItem(newValue);
38320
+ _super.prototype.onSelectedItemValuesChangedHandler.call(this, newValue);
38205
38321
  };
38206
38322
  QuestionDropdownModel.prototype.hasUnknownValue = function (val, includeOther, isFilteredChoices, checkEmptyValue) {
38207
38323
  if (this.choicesLazyLoadEnabled) {
@@ -38216,6 +38332,14 @@ var QuestionDropdownModel = /** @class */ (function (_super) {
38216
38332
  return false;
38217
38333
  return _super.prototype.hasUnknownValue.call(this, val, true, false);
38218
38334
  };
38335
+ QuestionDropdownModel.prototype.getItemIfChoicesNotContainThisValue = function (value, text) {
38336
+ if (this.choicesLazyLoadEnabled && !this.dropdownListModel.isAllDataLoaded) {
38337
+ return this.createItemValue(value, text);
38338
+ }
38339
+ else {
38340
+ return _super.prototype.getItemIfChoicesNotContainThisValue.call(this, value, text);
38341
+ }
38342
+ };
38219
38343
  QuestionDropdownModel.prototype.onVisibleChoicesChanged = function () {
38220
38344
  _super.prototype.onVisibleChoicesChanged.call(this);
38221
38345
  if (this.popupModel) {
@@ -38476,9 +38600,7 @@ var QuestionExpressionModel = /** @class */ (function (_super) {
38476
38600
  this.expressionRunner = new _conditions__WEBPACK_IMPORTED_MODULE_4__["ExpressionRunner"](this.expression);
38477
38601
  }
38478
38602
  this.expressionRunner.onRunComplete = function (newValue) {
38479
- if (!_helpers__WEBPACK_IMPORTED_MODULE_0__["Helpers"].isTwoValueEquals(newValue, _this.value)) {
38480
- _this.value = newValue;
38481
- }
38603
+ _this.value = newValue;
38482
38604
  _this.unlocCalculation();
38483
38605
  };
38484
38606
  this.expressionRunner.run(values, properties);
@@ -46034,7 +46156,13 @@ var QuestionMatrixDynamicModel = /** @class */ (function (_super) {
46034
46156
  };
46035
46157
  QuestionMatrixDynamicModel.prototype.isBanStartDrag = function (pointerDownEvent) {
46036
46158
  var target = pointerDownEvent.target;
46037
- return target.getAttribute("contenteditable") === "true" || target.nodeName === "INPUT";
46159
+ return target.getAttribute("contenteditable") === "true" || target.nodeName === "INPUT" || !this.isDragHandleAreaValid(target);
46160
+ };
46161
+ QuestionMatrixDynamicModel.prototype.isDragHandleAreaValid = function (node) {
46162
+ if (this.survey.matrixDragHandleArea === "icon") {
46163
+ return node.classList.contains(this.cssClasses.dragElementDecorator);
46164
+ }
46165
+ return true;
46038
46166
  };
46039
46167
  QuestionMatrixDynamicModel.prototype.onPointerDown = function (pointerDownEvent, row) {
46040
46168
  if (!row || !this.allowRowsDragAndDrop)
@@ -51276,7 +51404,7 @@ var QuestionRatingModel = /** @class */ (function (_super) {
51276
51404
  QuestionRatingModel.prototype.initColors = function () {
51277
51405
  if (this.colorMode === "monochrome")
51278
51406
  return;
51279
- if (!document)
51407
+ if (typeof document === "undefined" || !document)
51280
51408
  return;
51281
51409
  if (QuestionRatingModel.badColor && QuestionRatingModel.normalColor && QuestionRatingModel.goodColor)
51282
51410
  return;
@@ -52341,7 +52469,6 @@ __webpack_require__.r(__webpack_exports__);
52341
52469
  /* harmony import */ var _question_checkbox__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./question_checkbox */ "./src/question_checkbox.ts");
52342
52470
  /* harmony import */ var _dropdownMultiSelectListModel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./dropdownMultiSelectListModel */ "./src/dropdownMultiSelectListModel.ts");
52343
52471
  /* 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
52472
  var __extends = (undefined && undefined.__extends) || (function () {
52346
52473
  var extendStatics = function (d, b) {
52347
52474
  extendStatics = Object.setPrototypeOf ||
@@ -52369,7 +52496,6 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
52369
52496
 
52370
52497
 
52371
52498
 
52372
-
52373
52499
  /**
52374
52500
  * A Model for a tagbox question
52375
52501
  *
@@ -52494,6 +52620,15 @@ var QuestionTagboxModel = /** @class */ (function (_super) {
52494
52620
  this.dropdownListModel.updateItems();
52495
52621
  }
52496
52622
  };
52623
+ QuestionTagboxModel.prototype.getItemIfChoicesNotContainThisValue = function (value, text) {
52624
+ var _a;
52625
+ if (this.choicesLazyLoadEnabled && !((_a = this.dropdownListModel) === null || _a === void 0 ? void 0 : _a.isAllDataLoaded)) {
52626
+ return this.createItemValue(value, text);
52627
+ }
52628
+ else {
52629
+ return _super.prototype.getItemIfChoicesNotContainThisValue.call(this, value, text);
52630
+ }
52631
+ };
52497
52632
  QuestionTagboxModel.prototype.validateItemValues = function (itemValues) {
52498
52633
  var _this = this;
52499
52634
  this.updateItemDisplayNameMap();
@@ -52507,7 +52642,10 @@ var QuestionTagboxModel = /** @class */ (function (_super) {
52507
52642
  }
52508
52643
  var itemValueValues = itemValues.map(function (iV) { return iV.value; });
52509
52644
  val.filter(function (item) { return itemValueValues.indexOf(item) === -1; }).forEach(function (item) {
52510
- itemValues.push(new _itemvalue__WEBPACK_IMPORTED_MODULE_6__["ItemValue"](item, _this.itemDisplayNameMap[item]));
52645
+ var newItem = _this.getItemIfChoicesNotContainThisValue(item, _this.itemDisplayNameMap[item]);
52646
+ if (newItem) {
52647
+ itemValues.push(newItem);
52648
+ }
52511
52649
  });
52512
52650
  itemValues.sort(function (a, b) { return val.indexOf(a.value) - val.indexOf(b.value); });
52513
52651
  return itemValues;
@@ -53604,7 +53742,7 @@ var QuestionTextBase = /** @class */ (function (_super) {
53604
53742
  });
53605
53743
  Object.defineProperty(QuestionTextBase.prototype, "a11y_input_ariaLabel", {
53606
53744
  get: function () {
53607
- if (this.hasTitle) {
53745
+ if (this.hasTitle && !this.parentQuestion) {
53608
53746
  return null;
53609
53747
  }
53610
53748
  else {
@@ -53616,7 +53754,7 @@ var QuestionTextBase = /** @class */ (function (_super) {
53616
53754
  });
53617
53755
  Object.defineProperty(QuestionTextBase.prototype, "a11y_input_ariaLabelledBy", {
53618
53756
  get: function () {
53619
- if (this.hasTitle) {
53757
+ if (this.hasTitle && !this.parentQuestion) {
53620
53758
  return this.ariaTitleId;
53621
53759
  }
53622
53760
  else {
@@ -58250,14 +58388,10 @@ var Survey = /** @class */ (function (_super) {
58250
58388
  }
58251
58389
  var rootCss = this.survey.getRootCss();
58252
58390
  var cssClasses = this.rootNodeClassName ? this.rootNodeClassName + " " + rootCss : rootCss;
58253
- var rootStyle = {
58254
- backgroundImage: this.survey.renderBackgroundImage,
58255
- backgroundSize: this.survey.backgroundImageFit
58256
- };
58257
58391
  var formStyle = {
58258
58392
  backgroundColor: this.survey.renderBackgroundOpacity
58259
58393
  };
58260
- return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: this.rootNodeId, ref: this.rootRef, className: cssClasses, style: rootStyle },
58394
+ return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: this.rootNodeId, ref: this.rootRef, className: cssClasses, style: this.survey.themeVariables },
58261
58395
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("form", { onSubmit: onSubmit, style: formStyle },
58262
58396
  customHeader,
58263
58397
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.container },
@@ -59902,7 +60036,7 @@ var SurveyElementBase = /** @class */ (function (_super) {
59902
60036
  };
59903
60037
  SurveyElementBase.renderQuestionDescription = function (question) {
59904
60038
  var descriptionText = SurveyElementBase.renderLocString(question.locDescription);
59905
- return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { style: question.isDescriptionVisible ? undefined : { display: "none" }, className: question.cssDescription }, descriptionText);
60039
+ return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { style: question.hasDescription ? undefined : { display: "none" }, className: question.cssDescription }, descriptionText);
59906
60040
  };
59907
60041
  SurveyElementBase.prototype.componentDidMount = function () {
59908
60042
  this.makeBaseElementsReact();
@@ -64166,7 +64300,12 @@ var SurveyElementCore = /** @class */ (function (_super) {
64166
64300
  });
64167
64301
  SurveyElementCore.prototype.getDefaultTitleValue = function () { return undefined; };
64168
64302
  SurveyElementCore.prototype.updateDescriptionVisibility = function (newDescription) {
64169
- this.hasDescription = !!newDescription;
64303
+ var showPlaceholder = false;
64304
+ if (this.isDesignMode) {
64305
+ var property_1 = _jsonobject__WEBPACK_IMPORTED_MODULE_0__["Serializer"].findProperty(this.getType(), "description");
64306
+ showPlaceholder = !!(property_1 === null || property_1 === void 0 ? void 0 : property_1.placeholder);
64307
+ }
64308
+ this.hasDescription = !!newDescription || showPlaceholder;
64170
64309
  };
64171
64310
  Object.defineProperty(SurveyElementCore.prototype, "locDescription", {
64172
64311
  get: function () {
@@ -64269,7 +64408,7 @@ var SurveyElementCore = /** @class */ (function (_super) {
64269
64408
  Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])({
64270
64409
  localizable: true,
64271
64410
  onSet: function (newDescription, self) {
64272
- self.updateDescriptionVisibility(self, newDescription);
64411
+ self.updateDescriptionVisibility(newDescription);
64273
64412
  }
64274
64413
  })
64275
64414
  ], SurveyElementCore.prototype, "description", void 0);
@@ -64641,7 +64780,7 @@ var SurveyElement = /** @class */ (function (_super) {
64641
64780
  return _super.prototype.canRunConditions.call(this) && !!this.data;
64642
64781
  };
64643
64782
  SurveyElement.prototype.getDataFilteredValues = function () {
64644
- return !!this.data ? this.data.getFilteredValues() : null;
64783
+ return !!this.data ? this.data.getFilteredValues() : {};
64645
64784
  };
64646
64785
  SurveyElement.prototype.getDataFilteredProperties = function () {
64647
64786
  var props = !!this.data ? this.data.getFilteredProperties() : {};
@@ -64780,6 +64919,7 @@ var SurveyElement = /** @class */ (function (_super) {
64780
64919
  * - [`onUpdateChoiceItemCss`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onUpdateChoiceItemCss)
64781
64920
  */
64782
64921
  get: function () {
64922
+ var _dummy = this.cssClassesValue;
64783
64923
  if (!this.survey)
64784
64924
  return this.calcCssClasses(this.css);
64785
64925
  this.ensureCssClassesValue();
@@ -64906,6 +65046,7 @@ var SurveyElement = /** @class */ (function (_super) {
64906
65046
  if (!this.survey) {
64907
65047
  this.onSurveyLoad();
64908
65048
  }
65049
+ this.updateDescriptionVisibility(this.description);
64909
65050
  };
64910
65051
  SurveyElement.prototype.setVisibleIndex = function (index) {
64911
65052
  return 0;
@@ -65252,13 +65393,6 @@ var SurveyElement = /** @class */ (function (_super) {
65252
65393
  enumerable: false,
65253
65394
  configurable: true
65254
65395
  });
65255
- Object.defineProperty(SurveyElement.prototype, "isDescriptionVisible", {
65256
- get: function () {
65257
- return (!!this.description || this.isDesignMode);
65258
- },
65259
- enumerable: false,
65260
- configurable: true
65261
- });
65262
65396
  Object.defineProperty(SurveyElement.prototype, "rootStyle", {
65263
65397
  get: function () {
65264
65398
  var style = {};
@@ -66146,6 +66280,7 @@ var SurveyModel = /** @class */ (function (_super) {
66146
66280
  */
66147
66281
  _this.hideRequiredErrors = false;
66148
66282
  //#endregion
66283
+ _this.cssVariables = {};
66149
66284
  _this._isMobile = false;
66150
66285
  _this._isCompact = false;
66151
66286
  _this._isDesignMode = false;
@@ -67538,6 +67673,16 @@ var SurveyModel = /** @class */ (function (_super) {
67538
67673
  enumerable: false,
67539
67674
  configurable: true
67540
67675
  });
67676
+ Object.defineProperty(SurveyModel.prototype, "themeVariables", {
67677
+ get: function () {
67678
+ var result = Object.assign({}, this.cssVariables);
67679
+ result.backgroundImage = this.renderBackgroundImage;
67680
+ result.backgroundSize = this.backgroundImageFit;
67681
+ return result;
67682
+ },
67683
+ enumerable: false,
67684
+ configurable: true
67685
+ });
67541
67686
  SurveyModel.prototype.setIsMobile = function (newVal) {
67542
67687
  if (newVal === void 0) { newVal = true; }
67543
67688
  if (this.isMobile !== newVal) {
@@ -68796,6 +68941,24 @@ var SurveyModel = /** @class */ (function (_super) {
68796
68941
  enumerable: false,
68797
68942
  configurable: true
68798
68943
  });
68944
+ Object.defineProperty(SurveyModel.prototype, "matrixDragHandleArea", {
68945
+ /**
68946
+ * Specifies which part of a choice item responds to a drag gesture in MatrixDynamic questions.
68947
+ *
68948
+ * Possible values:
68949
+ *
68950
+ * - `"entireItem"` (default) - Users can use the entire choice item as a drag handle.
68951
+ * - `"icon"` - Users can only use the choice item icon as a drag handle.
68952
+ */
68953
+ get: function () {
68954
+ return this.getPropertyValue("matrixDragHandleArea", "entireItem");
68955
+ },
68956
+ set: function (val) {
68957
+ this.setPropertyValue("matrixDragHandleArea", val);
68958
+ },
68959
+ enumerable: false,
68960
+ configurable: true
68961
+ });
68799
68962
  Object.defineProperty(SurveyModel.prototype, "isShowingPage", {
68800
68963
  /**
68801
68964
  * Survey is showing a page right now. It is in "running", "preview" or starting state.
@@ -69727,7 +69890,7 @@ var SurveyModel = /** @class */ (function (_super) {
69727
69890
  return false;
69728
69891
  if (doComplete) {
69729
69892
  this.currentPage.passed = true;
69730
- return this.doComplete();
69893
+ return this.doComplete(this.canBeCompletedByTrigger);
69731
69894
  }
69732
69895
  this.doNextPage();
69733
69896
  return true;
@@ -72935,6 +73098,14 @@ var SurveyModel = /** @class */ (function (_super) {
72935
73098
  }
72936
73099
  return containerLayoutElements;
72937
73100
  };
73101
+ SurveyModel.prototype.applyTheme = function (theme) {
73102
+ var _this = this;
73103
+ if (!theme)
73104
+ return;
73105
+ Object.keys(theme).forEach(function (key) {
73106
+ _this[key] = theme[key];
73107
+ });
73108
+ };
72938
73109
  /**
72939
73110
  * Use this method to dispose survey model properly.
72940
73111
  */
@@ -72966,6 +73137,12 @@ var SurveyModel = /** @class */ (function (_super) {
72966
73137
  __decorate([
72967
73138
  Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
72968
73139
  ], SurveyModel.prototype, "showBrandInfo", void 0);
73140
+ __decorate([
73141
+ Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: {} })
73142
+ ], SurveyModel.prototype, "cssVariables", void 0);
73143
+ __decorate([
73144
+ Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
73145
+ ], SurveyModel.prototype, "backgroundImagePosition", void 0);
72969
73146
  __decorate([
72970
73147
  Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
72971
73148
  ], SurveyModel.prototype, "_isMobile", void 0);
@@ -73087,6 +73264,12 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].addClass("survey", [
73087
73264
  default: "initial",
73088
73265
  choices: ["initial", "random"],
73089
73266
  },
73267
+ {
73268
+ name: "matrixDragHandleArea",
73269
+ visible: false,
73270
+ default: "entireItem",
73271
+ choices: ["entireItem", "icon"]
73272
+ },
73090
73273
  "showPageNumbers:boolean",
73091
73274
  {
73092
73275
  name: "showQuestionNumbers",
@@ -73654,9 +73837,10 @@ __webpack_require__.r(__webpack_exports__);
73654
73837
 
73655
73838
 
73656
73839
 
73657
- function tryNavigateToPage(survey, index) {
73840
+ function tryNavigateToPage(survey, page) {
73658
73841
  if (survey.isDesignMode)
73659
73842
  return;
73843
+ var index = survey.visiblePages.indexOf(page);
73660
73844
  if (index < survey.currentPageNo) {
73661
73845
  survey.currentPageNo = index;
73662
73846
  }
@@ -73669,7 +73853,7 @@ function tryNavigateToPage(survey, index) {
73669
73853
  return true;
73670
73854
  }
73671
73855
  function createTOCListModel(survey) {
73672
- var items = survey.pages.map(function (page, index) {
73856
+ var items = survey.pages.map(function (page) {
73673
73857
  return new _actions_action__WEBPACK_IMPORTED_MODULE_0__["Action"]({
73674
73858
  id: page.name,
73675
73859
  title: page.navigationTitle || page.title || page.name,
@@ -73677,7 +73861,7 @@ function createTOCListModel(survey) {
73677
73861
  if (typeof document !== undefined && !!document.activeElement) {
73678
73862
  !!document.activeElement.blur && document.activeElement.blur();
73679
73863
  }
73680
- return tryNavigateToPage(survey, index);
73864
+ return tryNavigateToPage(survey, page);
73681
73865
  },
73682
73866
  visible: new _base__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () { return page.isVisible && !page.isStartPage; })
73683
73867
  });
@@ -74122,6 +74306,20 @@ var QuestionTextProcessor = /** @class */ (function () {
74122
74306
 
74123
74307
 
74124
74308
 
74309
+ /***/ }),
74310
+
74311
+ /***/ "./src/themes.ts":
74312
+ /*!***********************!*\
74313
+ !*** ./src/themes.ts ***!
74314
+ \***********************/
74315
+ /*! no exports provided */
74316
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
74317
+
74318
+ "use strict";
74319
+ __webpack_require__.r(__webpack_exports__);
74320
+
74321
+
74322
+
74125
74323
  /***/ }),
74126
74324
 
74127
74325
  /***/ "./src/trigger.ts":