survey-react 1.9.137 → 1.9.139

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.137
2
+ * surveyjs - Survey JavaScript library v1.9.139
3
3
  * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -769,9 +769,27 @@ var BaseAction = /** @class */ (function (_super) {
769
769
  __extends(BaseAction, _super);
770
770
  function BaseAction() {
771
771
  var _this = _super !== null && _super.apply(this, arguments) || this;
772
+ _this.rendredIdValue = BaseAction.getNextRendredId();
772
773
  _this.iconSize = 24;
773
774
  return _this;
774
775
  }
776
+ BaseAction.getNextRendredId = function () { return BaseAction.renderedId++; };
777
+ Object.defineProperty(BaseAction.prototype, "renderedId", {
778
+ get: function () { return this.rendredIdValue; },
779
+ enumerable: false,
780
+ configurable: true
781
+ });
782
+ Object.defineProperty(BaseAction.prototype, "owner", {
783
+ get: function () { return this.ownerValue; },
784
+ set: function (val) {
785
+ if (val !== this.owner) {
786
+ this.ownerValue = val;
787
+ this.locStrsChanged();
788
+ }
789
+ },
790
+ enumerable: false,
791
+ configurable: true
792
+ });
775
793
  Object.defineProperty(BaseAction.prototype, "visible", {
776
794
  get: function () {
777
795
  return this.getVisible();
@@ -896,6 +914,7 @@ var BaseAction = /** @class */ (function (_super) {
896
914
  }
897
915
  return args.isTrusted;
898
916
  };
917
+ BaseAction.renderedId = 1;
899
918
  __decorate([
900
919
  Object(_jsonobject__WEBPACK_IMPORTED_MODULE_2__["property"])()
901
920
  ], BaseAction.prototype, "tooltip", void 0);
@@ -4863,7 +4882,7 @@ var modernCss = {
4863
4882
  root: "sv-file",
4864
4883
  other: "sv-comment sv-question__other",
4865
4884
  placeholderInput: "sv-visuallyhidden",
4866
- preview: "sv-file__preview",
4885
+ previewItem: "sd-file__preview-item",
4867
4886
  fileSignBottom: "sv-file__sign",
4868
4887
  fileDecorator: "sv-file__decorator",
4869
4888
  fileInput: "sv-visuallyhidden",
@@ -5270,7 +5289,7 @@ var defaultStandardCss = {
5270
5289
  file: {
5271
5290
  root: "sv_q_file",
5272
5291
  placeholderInput: "sv-visuallyhidden",
5273
- preview: "sv_q_file_preview",
5292
+ previewItem: "sv_q_file_preview",
5274
5293
  removeButton: "sv_q_file_remove_button",
5275
5294
  fileInput: "sv-visuallyhidden",
5276
5295
  removeFile: "sv_q_file_remove",
@@ -5572,6 +5591,7 @@ var defaultV2Css = {
5572
5591
  titleExpanded: "sd-element__title--expanded",
5573
5592
  titleCollapsed: "sd-element__title--collapsed",
5574
5593
  titleDisabled: "sd-element__title--disabled",
5594
+ titleReadOnly: "sd-element__title--readonly",
5575
5595
  titleBar: "sd-action-title-bar",
5576
5596
  requiredText: "sd-question__required-text",
5577
5597
  number: "sd-element__num",
@@ -5596,6 +5616,8 @@ var defaultV2Css = {
5596
5616
  invisible: "sd-element--invisible",
5597
5617
  composite: "sd-element--complex sd-composite",
5598
5618
  disabled: "sd-question--disabled",
5619
+ readOnly: "sd-question--readonly",
5620
+ preview: "sd-question--preview",
5599
5621
  errorsContainer: "sd-element__erbox sd-question__erbox",
5600
5622
  errorsContainerTop: "sd-element__erbox--above-element sd-question__erbox--above-question",
5601
5623
  errorsContainerBottom: "sd-question__erbox--below-question"
@@ -5632,6 +5654,9 @@ var defaultV2Css = {
5632
5654
  itemSelectAll: "sd-checkbox--selectall",
5633
5655
  itemNone: "sd-checkbox--none",
5634
5656
  itemDisabled: "sd-item--disabled sd-checkbox--disabled",
5657
+ itemReadOnly: "sd-item--readonly sd-checkbox--readonly",
5658
+ itemPreview: "sd-item--preview sd-checkbox--preview",
5659
+ itemPreviewSvgIconId: "#icon-v2check",
5635
5660
  itemChecked: "sd-item--checked sd-checkbox--checked",
5636
5661
  itemHover: "sd-item--allowhover sd-checkbox--allowhover",
5637
5662
  itemInline: "sd-selectbase__item--inline",
@@ -5656,6 +5681,9 @@ var defaultV2Css = {
5656
5681
  label: "sd-selectbase__label",
5657
5682
  labelChecked: "",
5658
5683
  itemDisabled: "sd-item--disabled sd-radio--disabled",
5684
+ itemReadOnly: "sd-item--readonly sd-radio--readonly",
5685
+ itemPreview: "sd-item--preview sd-radio--preview",
5686
+ itemPreviewSvgIconId: "#icon-v2check",
5659
5687
  itemChecked: "sd-item--checked sd-radio--checked",
5660
5688
  itemHover: "sd-item--allowhover sd-radio--allowhover",
5661
5689
  itemControl: "sd-visuallyhidden sd-item__control sd-radio__control",
@@ -5677,18 +5705,26 @@ var defaultV2Css = {
5677
5705
  itemExchanged: "sd-boolean--exchanged",
5678
5706
  itemIndeterminate: "sd-boolean--indeterminate",
5679
5707
  itemDisabled: "sd-boolean--disabled",
5708
+ itemReadOnly: "sd-boolean--readonly",
5709
+ itemPreview: "sd-boolean--preview",
5680
5710
  itemHover: "sd-boolean--allowhover",
5681
5711
  label: "sd-boolean__label",
5682
5712
  labelTrue: "sd-boolean__label--true",
5683
5713
  labelFalse: "sd-boolean__label--false",
5684
5714
  switch: "sd-boolean__switch",
5685
5715
  disabledLabel: "sd-checkbox__label--disabled",
5716
+ labelReadOnly: "sd-checkbox__label--readonly",
5717
+ labelPreview: "sd-checkbox__label--preview",
5686
5718
  sliderText: "sd-boolean__thumb-text",
5687
5719
  slider: "sd-boolean__thumb",
5688
5720
  sliderGhost: "sd-boolean__thumb-ghost",
5689
5721
  //radio
5690
5722
  radioItem: "sd-item",
5691
5723
  radioItemChecked: "sd-item--checked sd-radio--checked",
5724
+ radioItemDisabled: "sd-item--disabled sd-radio--disabled",
5725
+ radioItemReadOnly: "sd-item--readonly sd-radio--readonly",
5726
+ radioItemPreview: "sd-item--preview sd-radio--preview",
5727
+ itemPreviewSvgIconId: "#icon-v2check",
5692
5728
  radioLabel: "sd-selectbase__label",
5693
5729
  radioControlLabel: "sd-item__control-label",
5694
5730
  radioFieldset: "sd-selectbase",
@@ -5705,6 +5741,8 @@ var defaultV2Css = {
5705
5741
  checkboxItemChecked: "sd-item--checked sd-checkbox--checked",
5706
5742
  checkboxItemDecorator: "sd-item__svg sd-checkbox__svg",
5707
5743
  checkboxItemDisabled: "sd-item--disabled sd-checkbox--disabled",
5744
+ checkboxItemReadOnly: "sd-item--readonly sd-checkbox--readonly",
5745
+ checkboxItemPreview: "sd-item--preview sd-checkbox--preview",
5708
5746
  controlCheckbox: "sd-visuallyhidden sd-item__control sd-checkbox__control",
5709
5747
  checkboxMaterialDecorator: "sd-item__decorator sd-checkbox__decorator",
5710
5748
  checkboxControlLabel: "sd-item__control-label",
@@ -5714,6 +5752,8 @@ var defaultV2Css = {
5714
5752
  root: "sd-input sd-text",
5715
5753
  small: "sd-row__question--small",
5716
5754
  controlDisabled: "sd-input--disabled",
5755
+ controlReadOnly: "sd-input--readonly",
5756
+ controlPreview: "sd-input--preview",
5717
5757
  constrolWithCharacterCounter: "sd-text__character-counter",
5718
5758
  characterCounterBig: "sd-text__character-counter--big",
5719
5759
  content: "sd-text__content sd-question__content",
@@ -5724,6 +5764,9 @@ var defaultV2Css = {
5724
5764
  root: "sd-multipletext",
5725
5765
  rootMobile: "sd-multipletext--mobile",
5726
5766
  itemLabel: "sd-multipletext__item-container sd-input",
5767
+ itemLabelReadOnly: "sd-input--readonly",
5768
+ itemLabelDisabled: "sd-input--disabled",
5769
+ itemLabelPreview: "sd-input--preview",
5727
5770
  itemLabelOnError: "sd-multipletext__item-container--error",
5728
5771
  itemLabelAllowFocus: "sd-multipletext__item-container--allow-focus",
5729
5772
  itemLabelAnswered: "sd-multipletext__item-container--answered",
@@ -5761,6 +5804,8 @@ var defaultV2Css = {
5761
5804
  controlInputFieldComponent: "sd-dropdown__input-field-component",
5762
5805
  controlValue: "sd-dropdown__value",
5763
5806
  controlDisabled: "sd-input--disabled",
5807
+ controlReadOnly: "sd-input--readonly",
5808
+ controlPreview: "sd-input--preview",
5764
5809
  controlEmpty: "sd-dropdown--empty",
5765
5810
  controlLabel: "sd-item__control-label",
5766
5811
  filterStringInput: "sd-dropdown__filter-string-input",
@@ -5777,6 +5822,8 @@ var defaultV2Css = {
5777
5822
  itemInline: "sd-imagepicker__item--inline",
5778
5823
  itemChecked: "sd-imagepicker__item--checked",
5779
5824
  itemDisabled: "sd-imagepicker__item--disabled",
5825
+ itemReadOnly: "sd-imagepicker__item--readonly",
5826
+ itemPreview: "sd-imagepicker__item--preview",
5780
5827
  itemHover: "sd-imagepicker__item--allowhover",
5781
5828
  label: "sd-imagepicker__label",
5782
5829
  itemDecorator: "sd-imagepicker__item-decorator",
@@ -5806,6 +5853,7 @@ var defaultV2Css = {
5806
5853
  cell: "sd-table__cell sd-matrix__cell",
5807
5854
  row: "sd-table__row",
5808
5855
  rowDisabled: "sd-table__row-disabled",
5856
+ rowReadOnly: "sd-table__row-readonly",
5809
5857
  headerCell: "sd-table__cell sd-table__cell--header",
5810
5858
  rowTextCell: "sd-table__cell sd-matrix__cell sd-table__cell--row-text",
5811
5859
  label: "sd-item sd-radio sd-matrix__label",
@@ -5813,6 +5861,9 @@ var defaultV2Css = {
5813
5861
  itemValue: "sd-visuallyhidden sd-item__control sd-radio__control",
5814
5862
  itemChecked: "sd-item--checked sd-radio--checked",
5815
5863
  itemDisabled: "sd-item--disabled sd-radio--disabled",
5864
+ itemReadOnly: "sd-item--readonly sd-radio--readonly",
5865
+ itemPreview: "sd-item--preview sd-radio--preview",
5866
+ itemPreviewSvgIconId: "#icon-v2check",
5816
5867
  itemHover: "sd-radio--allowhover",
5817
5868
  materialDecorator: "sd-item__decorator sd-radio__decorator",
5818
5869
  itemDecorator: "sd-item__svg sd-radio__svg",
@@ -5933,6 +5984,8 @@ var defaultV2Css = {
5933
5984
  itemStarHover: "sd-rating__item-star--allowhover",
5934
5985
  itemStarSelected: "sd-rating__item-star--selected",
5935
5986
  itemStarDisabled: "sd-rating__item-star--disabled",
5987
+ itemStarReadOnly: "sd-rating__item-star--readonly",
5988
+ itemStarPreview: "sd-rating__item-star--preview",
5936
5989
  itemStarHighlighted: "sd-rating__item-star--highlighted",
5937
5990
  itemStarUnhighlighted: "sd-rating__item-star--unhighlighted",
5938
5991
  itemStarSmall: "sd-rating__item-star--small",
@@ -5941,6 +5994,8 @@ var defaultV2Css = {
5941
5994
  itemSmileyHover: "sd-rating__item-smiley--allowhover",
5942
5995
  itemSmileySelected: "sd-rating__item-smiley--selected",
5943
5996
  itemSmileyDisabled: "sd-rating__item-smiley--disabled",
5997
+ itemSmileyReadOnly: "sd-rating__item-smiley--readonly",
5998
+ itemSmileyPreview: "sd-rating__item-smiley--preview",
5944
5999
  itemSmileyHighlighted: "sd-rating__item-star--highlighted",
5945
6000
  itemSmileyScaleColored: "sd-rating__item-smiley--scale-colored",
5946
6001
  itemSmileyRateColored: "sd-rating__item-smiley--rate-colored",
@@ -5949,6 +6004,8 @@ var defaultV2Css = {
5949
6004
  itemText: "sd-rating__item-text",
5950
6005
  maxText: "sd-rating__item-text sd-rating__max-text",
5951
6006
  itemDisabled: "sd-rating__item--disabled",
6007
+ itemReadOnly: "sd-rating__item--readonly",
6008
+ itemPreview: "sd-rating__item--preview",
5952
6009
  itemFixedSize: "sd-rating__item--fixed-size",
5953
6010
  control: "sd-input sd-dropdown",
5954
6011
  itemSmall: "sd-rating--small",
@@ -5967,6 +6024,8 @@ var defaultV2Css = {
5967
6024
  root: "sd-input sd-comment",
5968
6025
  small: "sd-row__question--small",
5969
6026
  controlDisabled: "sd-input--disabled",
6027
+ controlReadOnly: "sd-input--readonly",
6028
+ controlPreview: "sd-input--preview",
5970
6029
  content: "sd-comment__content sd-question__content",
5971
6030
  remainingCharacterCounter: "sd-remaining-character-counter",
5972
6031
  onError: "sd-input--error"
@@ -5976,9 +6035,12 @@ var defaultV2Css = {
5976
6035
  root: "sd-file",
5977
6036
  rootDragging: "sd-file--dragging",
5978
6037
  rootAnswered: "sd-file--answered",
6038
+ rootDisabled: "sd-file--disabled",
6039
+ rootReadOnly: "sd-file--readonly",
6040
+ rootPreview: "sd-file--preview",
5979
6041
  other: "sd-input sd-comment",
5980
6042
  placeholderInput: "sd-visuallyhidden",
5981
- preview: "sd-file__preview",
6043
+ previewItem: "sd-file__preview-item",
5982
6044
  fileSign: "",
5983
6045
  fileList: "sd-file__list",
5984
6046
  fileSignBottom: "sd-file__sign",
@@ -6069,9 +6131,12 @@ var defaultV2Css = {
6069
6131
  rootMobileMod: "sv-ranking--mobile",
6070
6132
  rootDragMod: "sv-ranking--drag",
6071
6133
  rootDisabled: "sd-ranking--disabled",
6134
+ rootReadOnly: "sd-ranking--readonly",
6135
+ rootPreview: "sd-ranking--preview",
6072
6136
  rootDesignMode: "sv-ranking--design-mode",
6073
6137
  rootDragHandleAreaIcon: "sv-ranking--drag-handle-area-icon",
6074
6138
  rootSelectToRankMod: "sv-ranking--select-to-rank",
6139
+ rootSelectToRankEmptyValueMod: "sv-ranking--select-to-rank-empty-value",
6075
6140
  rootSelectToRankAlignVertical: "sv-ranking--select-to-rank-vertical",
6076
6141
  rootSelectToRankAlignHorizontal: "sv-ranking--select-to-rank-horizontal",
6077
6142
  item: "sv-ranking-item",
@@ -6080,6 +6145,8 @@ var defaultV2Css = {
6080
6145
  itemIndexEmptyMode: "sv-ranking-item__index--empty sd-ranking-item__index--empty",
6081
6146
  // itemText: "sv-ranking-item__text",
6082
6147
  itemDisabled: "sv-ranking-item--disabled",
6148
+ itemReadOnly: "sv-ranking-item--readonly",
6149
+ itemPreview: "sv-ranking-item--preview",
6083
6150
  controlLabel: "sv-ranking-item__text",
6084
6151
  itemGhostNode: "sv-ranking-item__ghost",
6085
6152
  itemIconContainer: "sv-ranking-item__icon-container",
@@ -6156,7 +6223,10 @@ var defaultV2Css = {
6156
6223
  controlValue: "sd-tagbox__value sd-dropdown__value",
6157
6224
  controlValueItems: "sd-tagbox__value-items",
6158
6225
  placeholderInput: "sd-tagbox__placeholder",
6226
+ controlEditable: "sd-input--editable",
6159
6227
  controlDisabled: "sd-input--disabled",
6228
+ controlReadOnly: "sd-input--readonly",
6229
+ controlPreview: "sd-input--preview",
6160
6230
  controlEmpty: "sd-dropdown--empty sd-tagbox--empty",
6161
6231
  controlLabel: "sd-item__control-label",
6162
6232
  filterStringInput: "sd-tagbox__filter-string-input sd-dropdown__filter-string-input",
@@ -6933,7 +7003,7 @@ var DragDropCore = /** @class */ (function () {
6933
7003
  return (this.dropTarget === this.prevDropTarget && newIsBottom === this.isBottom);
6934
7004
  };
6935
7005
  DragDropCore.prototype.getShortcutText = function (draggedElement) {
6936
- return draggedElement.shortcutText;
7006
+ return draggedElement === null || draggedElement === void 0 ? void 0 : draggedElement.shortcutText;
6937
7007
  };
6938
7008
  DragDropCore.prototype.createDraggedElementShortcut = function (text, draggedElementNode, event) {
6939
7009
  var draggedElementShortcut = _global_variables_utils__WEBPACK_IMPORTED_MODULE_2__["DomDocumentHelper"].createElement("div");
@@ -7470,8 +7540,12 @@ var DragDropMatrixRows = /** @class */ (function (_super) {
7470
7540
  dropTargetRenderedRow = matrix.renderedTable.rows.filter(function (renderedRow) { return renderedRow.row && renderedRow.row.id === dataAttributeValue; })[0];
7471
7541
  return dropTargetRenderedRow.row;
7472
7542
  };
7543
+ DragDropMatrixRows.prototype.canInsertIntoThisRow = function (row) {
7544
+ var lockedRows = this.parentElement.lockedRowCount;
7545
+ return lockedRows <= 0 || row.rowIndex > lockedRows;
7546
+ };
7473
7547
  DragDropMatrixRows.prototype.isDropTargetValid = function (dropTarget, dropTargetNode) {
7474
- return true;
7548
+ return this.canInsertIntoThisRow(dropTarget);
7475
7549
  };
7476
7550
  DragDropMatrixRows.prototype.calculateIsBottom = function (clientY) {
7477
7551
  var rendreredRows = this.parentElement.renderedTable.rows;
@@ -8066,6 +8140,7 @@ var DropdownListModel = /** @class */ (function (_super) {
8066
8140
  this._popupModel.isFocusedContainer = false;
8067
8141
  this._popupModel.isFocusedContent = _utils_devices__WEBPACK_IMPORTED_MODULE_9__["IsTouch"];
8068
8142
  this._popupModel.setWidthByTarget = !_utils_devices__WEBPACK_IMPORTED_MODULE_9__["IsTouch"];
8143
+ this._popupModel.locale = this.question.getLocale();
8069
8144
  this.updatePopupFocusFirstInputSelector();
8070
8145
  this.listModel.registerPropertyChangedHandlers(["showFilter"], function () {
8071
8146
  _this.updatePopupFocusFirstInputSelector();
@@ -8166,6 +8241,7 @@ var DropdownListModel = /** @class */ (function (_super) {
8166
8241
  }
8167
8242
  });
8168
8243
  model.isAllDataLoaded = !this.question.choicesLazyLoadEnabled;
8244
+ model.actions.forEach(function (a) { return a.disableTabStop = true; });
8169
8245
  };
8170
8246
  DropdownListModel.prototype.updateCssClasses = function (popupCssClass, listCssClasses) {
8171
8247
  this.popupModel.cssClass = new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_8__["CssClassBuilder"]().append(popupCssClass).append(this.popupCssClasses).toString();
@@ -8730,6 +8806,7 @@ var DropdownMultiSelectListModel = /** @class */ (function (_super) {
8730
8806
  };
8731
8807
  }
8732
8808
  var res = new _multiSelectListModel__WEBPACK_IMPORTED_MODULE_3__["MultiSelectListModel"](visibleItems, _onSelectionChanged, false, undefined, this.question.choicesLazyLoadEnabled ? this.listModelFilterStringChanged : undefined, this.listElementId);
8809
+ res.actions.forEach(function (a) { return a.disableTabStop = true; });
8733
8810
  this.setOnTextSearchCallbackForListModel(res);
8734
8811
  res.forceShowFilter = true;
8735
8812
  return res;
@@ -9670,8 +9747,8 @@ __webpack_require__.r(__webpack_exports__);
9670
9747
 
9671
9748
  var Version;
9672
9749
  var ReleaseDate;
9673
- Version = "" + "1.9.137";
9674
- ReleaseDate = "" + "2024-04-02";
9750
+ Version = "" + "1.9.139";
9751
+ ReleaseDate = "" + "2024-04-16";
9675
9752
  function checkLibraryVersion(ver, libraryName) {
9676
9753
  if (Version != ver) {
9677
9754
  var str = "survey-core has version '" + Version + "' and " + libraryName
@@ -18344,7 +18421,7 @@ module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\
18344
18421
  /*! no static exports found */
18345
18422
  /***/ (function(module, exports) {
18346
18423
 
18347
- module.exports = "<svg viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\"><g><path d=\"M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z\" fill=\"none\" stroke-width=\"2\"></path><path d=\"M24.4663 34.6154L24 34.3695L23.5336 34.6154L14.4788 39.389L16.2156 29.2691L16.3044 28.7517L15.9289 28.3848L8.57358 21.1966L18.7249 19.7094L19.245 19.6332L19.4772 19.1616L24 9.97413L28.5228 19.1616L28.755 19.6332L29.275 19.7094L39.4264 21.1966L32.0711 28.3848L31.6956 28.7517L31.7844 29.2691L33.5211 39.389L24.4663 34.6154Z\" stroke-width=\"2\"></path></g></svg>"
18424
+ module.exports = "<svg viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\"><g><path d=\"M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z\" fill=\"none\"></path><path d=\"M24.4663 34.6154L24 34.3695L23.5336 34.6154L14.4788 39.389L16.2156 29.2691L16.3044 28.7517L15.9289 28.3848L8.57358 21.1966L18.7249 19.7094L19.245 19.6332L19.4772 19.1616L24 9.97413L28.5228 19.1616L28.755 19.6332L29.275 19.7094L39.4264 21.1966L32.0711 28.3848L31.6956 28.7517L31.7844 29.2691L33.5211 39.389L24.4663 34.6154Z\"></path></g></svg>"
18348
18425
 
18349
18426
  /***/ }),
18350
18427
 
@@ -18366,7 +18443,7 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
18366
18443
  /*! no static exports found */
18367
18444
  /***/ (function(module, exports) {
18368
18445
 
18369
- module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><g><path d=\"M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z\" stroke-width=\"2\"></path></g></svg>"
18446
+ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><g><path d=\"M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z\"></path></g></svg>"
18370
18447
 
18371
18448
  /***/ }),
18372
18449
 
@@ -18377,7 +18454,7 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
18377
18454
  /*! no static exports found */
18378
18455
  /***/ (function(module, exports) {
18379
18456
 
18380
- module.exports = "<svg viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\"><g><path d=\"M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z\" stroke-width=\"2\"></path></g></svg>"
18457
+ module.exports = "<svg viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\"><g><path d=\"M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z\"></path></g></svg>"
18381
18458
 
18382
18459
  /***/ }),
18383
18460
 
@@ -23506,7 +23583,7 @@ var englishStrings = {
23506
23583
  uploadingFile: "Your file is uploading. Please wait several seconds and try again.",
23507
23584
  loadingFile: "Loading...",
23508
23585
  chooseFile: "Choose file(s)...",
23509
- noFileChosen: "No file chosen",
23586
+ noFileChosen: "No file selected",
23510
23587
  filePlaceholder: "Drag and drop a file here or click the button below to select a file to upload.",
23511
23588
  confirmDelete: "Are you sure you want to delete this record?",
23512
23589
  keyDuplicationError: "This value should be unique.",
@@ -23536,6 +23613,7 @@ var englishStrings = {
23536
23613
  timerLimitSurvey: "You have spent {0} of {1} in total.",
23537
23614
  clearCaption: "Clear",
23538
23615
  signaturePlaceHolder: "Sign here",
23616
+ signaturePlaceHolderReadOnly: "No signature",
23539
23617
  chooseFileCaption: "Select File",
23540
23618
  takePhotoCaption: "Take Photo",
23541
23619
  photoPlaceholder: "Click the button below to take a photo using the camera.",
@@ -23552,7 +23630,7 @@ var englishStrings = {
23552
23630
  filterStringPlaceholder: "Type to search...",
23553
23631
  emptyMessage: "No data to display",
23554
23632
  noEntriesText: "No entries yet.\nClick the button below to add a new entry.",
23555
- noEntriesReadonlyText: "No entries.",
23633
+ noEntriesReadonlyText: "No entries",
23556
23634
  more: "More",
23557
23635
  tagboxDoneButtonCaption: "OK",
23558
23636
  selectToRankEmptyRankedAreaText: "All choices are selected for ranking",
@@ -30036,6 +30114,12 @@ var InputElementAdapter = /** @class */ (function () {
30036
30114
  _this.inputElement.value = maskedValue;
30037
30115
  }
30038
30116
  };
30117
+ this.clickHandler = function (event) {
30118
+ if (_this.inputElement.value == _this.inputMaskInstance.getMaskedValue("")) {
30119
+ _this.inputElement.setSelectionRange(0, 0);
30120
+ event.preventDefault();
30121
+ }
30122
+ };
30039
30123
  this.beforeInputHandler = function (event) {
30040
30124
  var args = _this.createArgs(event);
30041
30125
  var result = _this.inputMaskInstance.processInput(args);
@@ -30049,9 +30133,6 @@ var InputElementAdapter = /** @class */ (function () {
30049
30133
  if (_value === null || _value === undefined) {
30050
30134
  _value = "";
30051
30135
  }
30052
- else if (typeof _value !== "string") {
30053
- _value = _value.toString();
30054
- }
30055
30136
  this.inputElement.value = inputMaskInstance.getMaskedValue(_value);
30056
30137
  this.prevUnmaskedValue = _value;
30057
30138
  inputMaskInstance.onPropertyChanged.add(this.inputMaskInstancePropertyChangedHandler);
@@ -30079,11 +30160,15 @@ var InputElementAdapter = /** @class */ (function () {
30079
30160
  InputElementAdapter.prototype.addInputEventListener = function () {
30080
30161
  if (!!this.inputElement) {
30081
30162
  this.inputElement.addEventListener("beforeinput", this.beforeInputHandler);
30163
+ this.inputElement.addEventListener("click", this.clickHandler);
30164
+ this.inputElement.addEventListener("focus", this.clickHandler);
30082
30165
  }
30083
30166
  };
30084
30167
  InputElementAdapter.prototype.removeInputEventListener = function () {
30085
30168
  if (!!this.inputElement) {
30086
30169
  this.inputElement.removeEventListener("beforeinput", this.beforeInputHandler);
30170
+ this.inputElement.removeEventListener("click", this.clickHandler);
30171
+ this.inputElement.removeEventListener("focus", this.clickHandler);
30087
30172
  }
30088
30173
  };
30089
30174
  InputElementAdapter.prototype.dispose = function () {
@@ -30355,6 +30440,17 @@ var __extends = (undefined && undefined.__extends) || (function () {
30355
30440
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
30356
30441
  };
30357
30442
  })();
30443
+ var __assign = (undefined && undefined.__assign) || function () {
30444
+ __assign = Object.assign || function(t) {
30445
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
30446
+ s = arguments[i];
30447
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
30448
+ t[p] = s[p];
30449
+ }
30450
+ return t;
30451
+ };
30452
+ return __assign.apply(this, arguments);
30453
+ };
30358
30454
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
30359
30455
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
30360
30456
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -30366,11 +30462,15 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
30366
30462
 
30367
30463
  function getMaxCountLexem(currentLexemType, count) {
30368
30464
  switch (currentLexemType) {
30369
- case ("day"):
30370
- case ("month"): {
30465
+ case "hour":
30466
+ case "minute":
30467
+ case "second":
30468
+ case "day":
30469
+ case "month": {
30371
30470
  return 2;
30372
30471
  }
30373
- case ("year"): {
30472
+ case "timeMarker":
30473
+ case "year": {
30374
30474
  return count;
30375
30475
  }
30376
30476
  default: {
@@ -30402,7 +30502,8 @@ function getDefaultYearForValidation(minYear, maxYear) {
30402
30502
  function getDateTimeLexems(pattern) {
30403
30503
  var result = [];
30404
30504
  var prevLexemType;
30405
- var createOrUpdateLexem = function (currentLexemType, currentChar) {
30505
+ var createOrUpdateLexem = function (currentLexemType, currentChar, upperCase) {
30506
+ if (upperCase === void 0) { upperCase = false; }
30406
30507
  if (!!prevLexemType && prevLexemType === currentLexemType) {
30407
30508
  result[result.length - 1].count++;
30408
30509
  var maxCount = getMaxCountLexem(currentLexemType, result[result.length - 1].count);
@@ -30411,23 +30512,41 @@ function getDateTimeLexems(pattern) {
30411
30512
  else {
30412
30513
  var maxCount = getMaxCountLexem(currentLexemType, 1);
30413
30514
  // result.push({ type: currentLexemType, value: currentChar, count: 1, data: { value: "", isCompleted: false, isCorrect: false }, maxCount: maxCount });
30414
- result.push({ type: currentLexemType, value: currentChar, count: 1, maxCount: maxCount });
30515
+ result.push({ type: currentLexemType, value: currentChar, count: 1, maxCount: maxCount, upperCase: upperCase });
30415
30516
  }
30416
30517
  };
30417
30518
  for (var index = 0; index < pattern.length; index++) {
30418
30519
  var currentChar = pattern[index];
30419
30520
  switch (currentChar) {
30420
30521
  case "m":
30421
- createOrUpdateLexem("month", "m");
30522
+ createOrUpdateLexem("month", currentChar);
30422
30523
  break;
30423
30524
  case "d":
30424
- createOrUpdateLexem("day", "d");
30525
+ createOrUpdateLexem("day", currentChar);
30425
30526
  break;
30426
30527
  case "y":
30427
- createOrUpdateLexem("year", "y");
30528
+ createOrUpdateLexem("year", currentChar);
30529
+ break;
30530
+ case "h":
30531
+ createOrUpdateLexem("hour", currentChar, false);
30532
+ break;
30533
+ case "H":
30534
+ createOrUpdateLexem("hour", currentChar, true);
30535
+ break;
30536
+ case "M":
30537
+ createOrUpdateLexem("minute", currentChar);
30538
+ break;
30539
+ case "s":
30540
+ createOrUpdateLexem("second", currentChar);
30541
+ break;
30542
+ case "t":
30543
+ createOrUpdateLexem("timeMarker", currentChar);
30544
+ break;
30545
+ case "T":
30546
+ createOrUpdateLexem("timeMarker", currentChar, true);
30428
30547
  break;
30429
30548
  default:
30430
- result.push({ type: "separator", value: currentChar, count: 1, maxCount: 1 });
30549
+ result.push({ type: "separator", value: currentChar, count: 1, maxCount: 1, upperCase: false });
30431
30550
  break;
30432
30551
  }
30433
30552
  prevLexemType = result[result.length - 1].type;
@@ -30458,11 +30577,42 @@ var InputMaskDateTime = /** @class */ (function (_super) {
30458
30577
  __extends(InputMaskDateTime, _super);
30459
30578
  function InputMaskDateTime() {
30460
30579
  var _this = _super !== null && _super.apply(this, arguments) || this;
30580
+ _this.defaultDate = "1970-01-01T";
30461
30581
  _this.turnOfTheCentury = 68;
30582
+ _this.twelve = 12;
30462
30583
  _this.lexems = [];
30463
30584
  _this.inputDateTimeData = [];
30585
+ _this.validBeginningOfNumbers = {
30586
+ hour: 1,
30587
+ hourU: 2,
30588
+ minute: 5,
30589
+ second: 5,
30590
+ day: 3,
30591
+ month: 1,
30592
+ };
30464
30593
  return _this;
30465
30594
  }
30595
+ Object.defineProperty(InputMaskDateTime.prototype, "hasDatePart", {
30596
+ get: function () {
30597
+ return this.lexems.some(function (l) { return l.type === "day" || l.type === "month" || l.type === "year"; });
30598
+ },
30599
+ enumerable: false,
30600
+ configurable: true
30601
+ });
30602
+ Object.defineProperty(InputMaskDateTime.prototype, "hasTimePart", {
30603
+ get: function () {
30604
+ return this.lexems.some(function (l) { return l.type === "hour" || l.type === "minute" || l.type === "second"; });
30605
+ },
30606
+ enumerable: false,
30607
+ configurable: true
30608
+ });
30609
+ Object.defineProperty(InputMaskDateTime.prototype, "is12Hours", {
30610
+ get: function () {
30611
+ return this.lexems.filter(function (l) { return l.type === "hour" && !l.upperCase; }).length > 0;
30612
+ },
30613
+ enumerable: false,
30614
+ configurable: true
30615
+ });
30466
30616
  InputMaskDateTime.prototype.getType = function () {
30467
30617
  return "datetimemask";
30468
30618
  };
@@ -30482,20 +30632,45 @@ var InputMaskDateTime = /** @class */ (function (_super) {
30482
30632
  var _this = this;
30483
30633
  var date = new Date(str);
30484
30634
  this.initInputDateTimeData();
30635
+ if (!this.hasDatePart) {
30636
+ date = new Date(this.defaultDate + str);
30637
+ }
30485
30638
  if (!isNaN(date)) {
30486
30639
  this.lexems.forEach(function (lexem, index) {
30487
30640
  var inputData = _this.inputDateTimeData[index];
30488
30641
  inputData.isCompleted = true;
30489
30642
  switch (lexem.type) {
30490
- case ("day"): {
30643
+ case "hour": {
30644
+ if (!_this.is12Hours) {
30645
+ inputData.value = date.getHours().toString();
30646
+ }
30647
+ else {
30648
+ inputData.value = ((date.getHours() - 1) % _this.twelve + 1).toString();
30649
+ }
30650
+ break;
30651
+ }
30652
+ case "minute": {
30653
+ inputData.value = date.getMinutes().toString();
30654
+ break;
30655
+ }
30656
+ case "second": {
30657
+ inputData.value = date.getSeconds().toString();
30658
+ break;
30659
+ }
30660
+ case "timeMarker": {
30661
+ var marker = (date.getHours() >= _this.twelve) ? "pm" : "am";
30662
+ inputData.value = lexem.upperCase ? marker.toUpperCase() : marker;
30663
+ break;
30664
+ }
30665
+ case "day": {
30491
30666
  inputData.value = date.getDate().toString();
30492
30667
  break;
30493
30668
  }
30494
- case ("month"): {
30669
+ case "month": {
30495
30670
  inputData.value = (date.getMonth() + 1).toString();
30496
30671
  break;
30497
30672
  }
30498
- case ("year"): {
30673
+ case "year": {
30499
30674
  var year = date.getFullYear();
30500
30675
  if (lexem.count == 2)
30501
30676
  year = year % 100;
@@ -30518,12 +30693,40 @@ var InputMaskDateTime = /** @class */ (function (_super) {
30518
30693
  });
30519
30694
  };
30520
30695
  InputMaskDateTime.prototype.getISO_8601Format = function (dateTime) {
30521
- if (dateTime.year === undefined || dateTime.month === undefined || dateTime.day === undefined)
30522
- return "";
30523
- var year = this.getPlaceholder(4, dateTime.year.toString(), "0") + dateTime.year;
30524
- var month = this.getPlaceholder(2, dateTime.month.toString(), "0") + dateTime.month;
30525
- var day = this.getPlaceholder(2, dateTime.day.toString(), "0") + dateTime.day;
30526
- return [year, month, day].join("-");
30696
+ var date = [];
30697
+ var time = [];
30698
+ if (dateTime.year !== undefined) {
30699
+ var year = this.getPlaceholder(4, dateTime.year.toString(), "0") + dateTime.year;
30700
+ date.push(year);
30701
+ }
30702
+ if (dateTime.month !== undefined && dateTime.year !== undefined) {
30703
+ var month = this.getPlaceholder(2, dateTime.month.toString(), "0") + dateTime.month;
30704
+ date.push(month);
30705
+ }
30706
+ if (dateTime.day !== undefined && dateTime.month !== undefined && dateTime.year !== undefined) {
30707
+ var day = this.getPlaceholder(2, dateTime.day.toString(), "0") + dateTime.day;
30708
+ date.push(day);
30709
+ }
30710
+ if (dateTime.hour !== undefined) {
30711
+ var hour = this.getPlaceholder(2, dateTime.hour.toString(), "0") + dateTime.hour;
30712
+ time.push(hour);
30713
+ }
30714
+ if (dateTime.minute !== undefined && dateTime.hour !== undefined) {
30715
+ var minute = this.getPlaceholder(2, dateTime.minute.toString(), "0") + dateTime.minute;
30716
+ time.push(minute);
30717
+ }
30718
+ if (dateTime.second !== undefined && dateTime.minute !== undefined && dateTime.hour !== undefined) {
30719
+ var second = this.getPlaceholder(2, dateTime.second.toString(), "0") + dateTime.second;
30720
+ time.push(second);
30721
+ }
30722
+ var result = [];
30723
+ if (date.length > 0) {
30724
+ result.push(date.join("-"));
30725
+ }
30726
+ if (time.length > 1) {
30727
+ result.push(time.join(":"));
30728
+ }
30729
+ return result.join("T");
30527
30730
  };
30528
30731
  InputMaskDateTime.prototype.isYearValid = function (dateTime) {
30529
30732
  if (dateTime.min === undefined && dateTime.max === undefined)
@@ -30533,51 +30736,153 @@ var InputMaskDateTime = /** @class */ (function (_super) {
30533
30736
  var maxYearPart = dateTime.max.toISOString().slice(0, data.length);
30534
30737
  return dateTime.year >= parseInt(minYearPart) && dateTime.year <= parseInt(maxYearPart);
30535
30738
  };
30739
+ InputMaskDateTime.prototype.createIDateTimeCompositionWithDefaults = function (dateTime, isUpperLimit) {
30740
+ var min = dateTime.min;
30741
+ var max = dateTime.max;
30742
+ var year = dateTime.year !== undefined ? dateTime.year : getDefaultYearForValidation(min.getFullYear(), max.getFullYear());
30743
+ var month = dateTime.month !== undefined ? dateTime.month : (isUpperLimit && this.hasDatePart ? 12 : 1);
30744
+ var day = dateTime.day !== undefined ? dateTime.day : (isUpperLimit && this.hasDatePart ? this.getMaxDateForMonth(year, month) : 1);
30745
+ var hour = dateTime.hour !== undefined ? dateTime.hour : (isUpperLimit ? 23 : 0);
30746
+ var minute = dateTime.minute !== undefined ? dateTime.minute : (isUpperLimit ? 59 : 0);
30747
+ var second = dateTime.second !== undefined ? dateTime.second : (isUpperLimit ? 59 : 0);
30748
+ return { year: year, month: month, day: day, hour: hour, minute: minute, second: second };
30749
+ };
30750
+ InputMaskDateTime.prototype.getMaxDateForMonth = function (year, month) {
30751
+ if (month == 2)
30752
+ return year % 4 == 0 && year % 100 != 0 || year % 400 ? 29 : 28;
30753
+ return [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month - 1];
30754
+ };
30536
30755
  InputMaskDateTime.prototype.isDateValid = function (dateTime) {
30537
30756
  var min = dateTime.min;
30538
30757
  var max = dateTime.max;
30539
30758
  var year = dateTime.year !== undefined ? dateTime.year : getDefaultYearForValidation(min.getFullYear(), max.getFullYear());
30540
30759
  var month = dateTime.month !== undefined ? dateTime.month : 1;
30541
30760
  var day = dateTime.day !== undefined ? dateTime.day : 1;
30542
- var date = new Date(this.getISO_8601Format({ year: year, month: month, day: day }));
30543
30761
  var monthIndex = month - 1;
30762
+ var date = new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(dateTime, false)));
30763
+ var dateH = new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(dateTime, true)));
30544
30764
  return !isNaN(date) &&
30545
30765
  date.getDate() === day &&
30546
30766
  date.getMonth() === monthIndex &&
30547
30767
  date.getFullYear() === year &&
30548
- date >= dateTime.min && date <= dateTime.max;
30768
+ dateH >= dateTime.min && date <= dateTime.max;
30549
30769
  };
30550
30770
  InputMaskDateTime.prototype.getPlaceholder = function (lexemLength, str, char) {
30551
30771
  var paddingsLength = lexemLength - (str || "").length;
30552
30772
  var paddings = paddingsLength > 0 ? char.repeat(paddingsLength) : "";
30553
30773
  return paddings;
30554
30774
  };
30775
+ InputMaskDateTime.prototype.isDateValid12 = function (dateTime12) {
30776
+ if (!this.is12Hours)
30777
+ return this.isDateValid(dateTime12);
30778
+ if (this.is12Hours && dateTime12.hour > this.twelve) {
30779
+ return false;
30780
+ }
30781
+ if (!dateTime12.timeMarker) {
30782
+ if (this.isDateValid(dateTime12))
30783
+ return true;
30784
+ dateTime12.hour += this.twelve;
30785
+ return this.isDateValid(dateTime12);
30786
+ }
30787
+ else if (dateTime12.timeMarker[0].toLowerCase() === "p") {
30788
+ if (dateTime12.hour !== this.twelve) {
30789
+ dateTime12.hour += this.twelve;
30790
+ }
30791
+ return this.isDateValid(dateTime12);
30792
+ }
30793
+ else {
30794
+ if (dateTime12.hour === this.twelve) {
30795
+ dateTime12.hour = 0;
30796
+ }
30797
+ return this.isDateValid(dateTime12);
30798
+ }
30799
+ };
30800
+ InputMaskDateTime.prototype.updateTimeMarkerInputDateTimeData = function (newItem, dateTime) {
30801
+ var data = newItem.value;
30802
+ if (!data)
30803
+ return;
30804
+ var propertyName = "timeMarker";
30805
+ var tempDateTime = __assign({}, dateTime);
30806
+ tempDateTime[propertyName] = data;
30807
+ if (this.isDateValid12(tempDateTime)) {
30808
+ newItem.isCompleted = true;
30809
+ }
30810
+ else {
30811
+ data = data.slice(0, data.length - 1);
30812
+ }
30813
+ newItem.value = data || undefined;
30814
+ dateTime[propertyName] = data || undefined;
30815
+ return;
30816
+ };
30555
30817
  InputMaskDateTime.prototype.updateInputDateTimeData = function (newItem, dateTime) {
30556
30818
  var data = newItem.value;
30557
30819
  if (!data)
30558
30820
  return;
30559
30821
  var propertyName = newItem.lexem.type;
30560
- dateTime[propertyName] = parseInt(data);
30822
+ var tempDateTime = __assign({}, dateTime);
30823
+ tempDateTime[propertyName] = parseInt(data);
30561
30824
  if (data.length === newItem.lexem.maxCount) {
30562
- if (this.isDateValid(dateTime)) {
30825
+ if (this.isDateValid12(tempDateTime)) {
30563
30826
  newItem.isCompleted = true;
30827
+ newItem.value = data || undefined;
30828
+ dateTime[propertyName] = parseInt(data) > 0 ? parseInt(data) : undefined;
30829
+ return;
30564
30830
  }
30565
30831
  else {
30566
30832
  data = data.slice(0, data.length - 1);
30567
30833
  }
30568
30834
  }
30569
- else if (propertyName === "year" && !this.isYearValid(dateTime)) {
30835
+ tempDateTime[propertyName] = parseInt(data);
30836
+ var firstDigit = parseInt(data[0]);
30837
+ var validBeginningOfNumber = this.validBeginningOfNumbers[propertyName + (newItem.lexem.upperCase ? "U" : "")];
30838
+ if ((propertyName === "year" && !this.isYearValid(tempDateTime))) {
30570
30839
  data = data.slice(0, data.length - 1);
30840
+ newItem.isCompleted = false;
30571
30841
  }
30572
- else if ((propertyName === "day" && parseInt(data[0]) > 3) || (propertyName === "month" && parseInt(data[0]) > 1)) {
30573
- newItem.isCompleted = true;
30842
+ else if (validBeginningOfNumber !== undefined && firstDigit > validBeginningOfNumber) {
30843
+ if (this.isDateValid12(tempDateTime)) {
30844
+ newItem.isCompleted = true;
30845
+ }
30846
+ else {
30847
+ data = data.slice(0, data.length - 1);
30848
+ }
30849
+ }
30850
+ else if (validBeginningOfNumber !== undefined && firstDigit !== 0 && firstDigit <= validBeginningOfNumber) {
30851
+ this.checkValidationDateTimePart(tempDateTime, propertyName, newItem);
30852
+ if (newItem.isCompleted && !this.isDateValid12(tempDateTime)) {
30853
+ data = data.slice(0, data.length - 1);
30854
+ }
30574
30855
  }
30575
- newItem.value = data;
30856
+ newItem.value = data || undefined;
30576
30857
  dateTime[propertyName] = parseInt(data) > 0 ? parseInt(data) : undefined;
30577
30858
  };
30859
+ InputMaskDateTime.prototype.checkValidationDateTimePart = function (dateTime, propertyName, newItem) {
30860
+ var prevValue = dateTime[propertyName];
30861
+ var tempValue = prevValue * 10;
30862
+ var maxValue = 10;
30863
+ if (propertyName === "month")
30864
+ maxValue = 3;
30865
+ if (propertyName === "hour")
30866
+ maxValue = this.is12Hours ? 3 : 5;
30867
+ newItem.isCompleted = true;
30868
+ for (var index = 0; index < maxValue; index++) {
30869
+ dateTime[propertyName] = tempValue + index;
30870
+ if (this.isDateValid12(dateTime)) {
30871
+ newItem.isCompleted = false;
30872
+ break;
30873
+ }
30874
+ }
30875
+ dateTime[propertyName] = prevValue;
30876
+ };
30578
30877
  InputMaskDateTime.prototype.getCorrectDatePartFormat = function (inputData, matchWholeMask) {
30579
30878
  var lexem = inputData.lexem;
30580
30879
  var dataStr = inputData.value || "";
30880
+ if (!!dataStr && lexem.type === "timeMarker") {
30881
+ if (matchWholeMask) {
30882
+ dataStr = dataStr + this.getPlaceholder(lexem.count, dataStr, lexem.value);
30883
+ }
30884
+ return dataStr;
30885
+ }
30581
30886
  if (!!dataStr && inputData.isCompleted) {
30582
30887
  dataStr = parseInt(dataStr).toString();
30583
30888
  }
@@ -30595,12 +30900,24 @@ var InputMaskDateTime = /** @class */ (function (_super) {
30595
30900
  return dataStr;
30596
30901
  };
30597
30902
  InputMaskDateTime.prototype.createIDateTimeComposition = function () {
30903
+ var isoMin, isoMax;
30904
+ if (this.hasDatePart) {
30905
+ isoMin = this.min || "0001-01-01";
30906
+ isoMax = this.max || "9999-12-31";
30907
+ }
30908
+ else {
30909
+ isoMin = this.defaultDate + (this.min || "00:00:00");
30910
+ isoMax = this.defaultDate + (this.max || "23:59:59");
30911
+ }
30598
30912
  var tempDateTime = {
30913
+ hour: undefined,
30914
+ minute: undefined,
30915
+ second: undefined,
30599
30916
  day: undefined,
30600
30917
  month: undefined,
30601
30918
  year: undefined,
30602
- min: new Date(this.min || "0001-01-01"),
30603
- max: new Date(this.max || "9999-12-31")
30919
+ min: new Date(isoMin),
30920
+ max: new Date(isoMax)
30604
30921
  };
30605
30922
  return tempDateTime;
30606
30923
  };
@@ -30619,9 +30936,18 @@ var InputMaskDateTime = /** @class */ (function (_super) {
30619
30936
  var result = "";
30620
30937
  var prevSeparator = "";
30621
30938
  var prevIsCompleted = false;
30939
+ var lastItemWithDataIndex = this.inputDateTimeData.length - 1;
30940
+ if (!matchWholeMask) {
30941
+ var arr = this.inputDateTimeData.filter(function (item) { return !!item.value; });
30942
+ lastItemWithDataIndex = this.inputDateTimeData.indexOf(arr[arr.length - 1]);
30943
+ }
30622
30944
  for (var index = 0; index < this.inputDateTimeData.length; index++) {
30623
30945
  var inputData = this.inputDateTimeData[index];
30624
30946
  switch (inputData.lexem.type) {
30947
+ case "timeMarker":
30948
+ case "hour":
30949
+ case "minute":
30950
+ case "second":
30625
30951
  case "day":
30626
30952
  case "month":
30627
30953
  case "year":
@@ -30630,7 +30956,8 @@ var InputMaskDateTime = /** @class */ (function (_super) {
30630
30956
  return result;
30631
30957
  }
30632
30958
  else {
30633
- var data = this.getCorrectDatePartFormat(inputData, matchWholeMask);
30959
+ var _matchWholeMask = matchWholeMask || lastItemWithDataIndex > index;
30960
+ var data = this.getCorrectDatePartFormat(inputData, _matchWholeMask);
30634
30961
  result += (prevSeparator + data);
30635
30962
  prevIsCompleted = inputData.isCompleted;
30636
30963
  }
@@ -30642,15 +30969,38 @@ var InputMaskDateTime = /** @class */ (function (_super) {
30642
30969
  }
30643
30970
  return result;
30644
30971
  };
30972
+ InputMaskDateTime.prototype.cleanTimeMarker = function (str, upperCase) {
30973
+ var result = "";
30974
+ str = str.toUpperCase();
30975
+ for (var i = 0; i < str.length; i++) {
30976
+ if (!result && (str[i] == "P" || str[i] == "A") || result && str[i] == "M")
30977
+ result += str[i];
30978
+ }
30979
+ if (upperCase) {
30980
+ result = result.toUpperCase();
30981
+ }
30982
+ else {
30983
+ result = result.toLowerCase();
30984
+ }
30985
+ return result;
30986
+ };
30645
30987
  InputMaskDateTime.prototype.setInputDateTimeData = function (numberParts) {
30646
30988
  var _this = this;
30647
30989
  var numberPartsArrayIndex = 0;
30648
30990
  this.initInputDateTimeData();
30649
30991
  this.lexems.forEach(function (lexem, index) {
30650
- if (lexem.type !== "separator" && numberParts.length > 0 && numberPartsArrayIndex < numberParts.length) {
30992
+ if (numberParts.length > 0 && numberPartsArrayIndex < numberParts.length) {
30993
+ if (lexem.type === "separator")
30994
+ return;
30651
30995
  var inputData = _this.inputDateTimeData[index];
30652
30996
  var currentPart = numberParts[numberPartsArrayIndex];
30653
- var _data = _this.leaveOnlyNumbers(currentPart);
30997
+ var _data = void 0;
30998
+ if (lexem.type === "timeMarker") {
30999
+ _data = _this.cleanTimeMarker(currentPart, lexem.upperCase);
31000
+ }
31001
+ else {
31002
+ _data = _this.leaveOnlyNumbers(currentPart);
31003
+ }
30654
31004
  inputData.value = _data.slice(0, lexem.maxCount);
30655
31005
  numberPartsArrayIndex++;
30656
31006
  }
@@ -30663,35 +31013,16 @@ var InputMaskDateTime = /** @class */ (function (_super) {
30663
31013
  var inputParts = this.getParts(input);
30664
31014
  this.setInputDateTimeData(inputParts);
30665
31015
  var tempDateTime = this.createIDateTimeComposition();
30666
- this.inputDateTimeData.forEach(function (itemData) { return _this.updateInputDateTimeData(itemData, tempDateTime); });
30667
- var result = this.getFormatedString(matchWholeMask);
30668
- return result;
30669
- };
30670
- InputMaskDateTime.prototype.getPartsOld = function (input) {
30671
- var inputParts = [];
30672
- var separatorLexems = this.lexems.filter(function (l) { return l.type === "separator"; });
30673
- var separatorLexemsIndex = 0;
30674
- do {
30675
- if (!separatorLexems[separatorLexemsIndex]) {
30676
- if (!!input) {
30677
- inputParts.push(input);
30678
- input = "";
30679
- }
30680
- break;
30681
- }
30682
- var separatorCharIndex = input.indexOf(separatorLexems[separatorLexemsIndex].value);
30683
- if (separatorCharIndex !== -1) {
30684
- var part = input.slice(0, separatorCharIndex);
30685
- if (!!part) {
30686
- inputParts.push(part);
30687
- }
30688
- input = input.slice(separatorCharIndex + 1);
31016
+ this.inputDateTimeData.forEach(function (itemData) {
31017
+ if (itemData.lexem.type === "timeMarker") {
31018
+ _this.updateTimeMarkerInputDateTimeData(itemData, tempDateTime);
30689
31019
  }
30690
31020
  else {
31021
+ _this.updateInputDateTimeData(itemData, tempDateTime);
30691
31022
  }
30692
- separatorLexemsIndex++;
30693
- } while (!!input);
30694
- return inputParts;
31023
+ });
31024
+ var result = this.getFormatedString(matchWholeMask);
31025
+ return result;
30695
31026
  };
30696
31027
  InputMaskDateTime.prototype.getParts = function (input) {
30697
31028
  var inputParts = [];
@@ -30707,6 +31038,11 @@ var InputMaskDateTime = /** @class */ (function (_super) {
30707
31038
  foundPseudoSeparator = false;
30708
31039
  curPart += inputChar;
30709
31040
  }
31041
+ else if (lexemsWithValue[inputParts.length].type === "timeMarker") {
31042
+ foundSeparator = false;
31043
+ foundPseudoSeparator = false;
31044
+ curPart += inputChar;
31045
+ }
30710
31046
  else {
30711
31047
  if (separators.indexOf(inputChar) !== -1) {
30712
31048
  if (!foundPseudoSeparator) {
@@ -30735,17 +31071,27 @@ var InputMaskDateTime = /** @class */ (function (_super) {
30735
31071
  };
30736
31072
  InputMaskDateTime.prototype.getUnmaskedValue = function (src) {
30737
31073
  var _this = this;
31074
+ var _a;
30738
31075
  var input = (src === undefined || src === null) ? "" : src.toString();
30739
31076
  var inputParts = this.getParts(input);
30740
31077
  this.setInputDateTimeData(inputParts);
31078
+ var timeMarker = (_a = this.inputDateTimeData.filter(function (idtd) { return idtd.lexem.type === "timeMarker"; })[0]) === null || _a === void 0 ? void 0 : _a.value.toLowerCase()[0];
30741
31079
  var tempDateTime = this.createIDateTimeComposition();
31080
+ var uncompleted = false;
30742
31081
  this.inputDateTimeData.forEach(function (inputData) {
30743
31082
  var str = inputData.value;
30744
- if (!str || str.length < inputData.lexem.count)
30745
- return undefined;
30746
- tempDateTime[inputData.lexem.type] = parseInt(_this.parseTwoDigitYear(inputData));
31083
+ if (inputData.lexem.type == "timeMarker" || inputData.lexem.type == "separator")
31084
+ return;
31085
+ if (!str || str.length < inputData.lexem.count) {
31086
+ uncompleted = true;
31087
+ return;
31088
+ }
31089
+ var value = parseInt(_this.parseTwoDigitYear(inputData));
31090
+ if (inputData.lexem.type == "hour" && timeMarker === "p" && value != _this.twelve)
31091
+ value += _this.twelve;
31092
+ tempDateTime[inputData.lexem.type] = value;
30747
31093
  });
30748
- return this.getISO_8601Format(tempDateTime);
31094
+ return uncompleted ? "" : this.getISO_8601Format(tempDateTime);
30749
31095
  };
30750
31096
  InputMaskDateTime.prototype.getMaskedValue = function (src) {
30751
31097
  return this.getMaskedStrFromISO(src);
@@ -30937,7 +31283,7 @@ var InputMaskNumeric = /** @class */ (function (_super) {
30937
31283
  }
30938
31284
  return value;
30939
31285
  };
30940
- InputMaskNumeric.prototype.validateNumber = function (number) {
31286
+ InputMaskNumeric.prototype.validateNumber = function (number, matchWholeMask) {
30941
31287
  var min = this.min || Number.MIN_SAFE_INTEGER;
30942
31288
  var max = this.max || Number.MAX_SAFE_INTEGER;
30943
31289
  if (this.min !== undefined || this.max !== undefined) {
@@ -30945,7 +31291,12 @@ var InputMaskNumeric = /** @class */ (function (_super) {
30945
31291
  if (Number.isNaN(value)) {
30946
31292
  return true;
30947
31293
  }
30948
- return value >= min && value <= max;
31294
+ if (!matchWholeMask) {
31295
+ return value >= 0 && value <= max || value < 0 && value >= min;
31296
+ }
31297
+ else {
31298
+ return value >= min && value <= max;
31299
+ }
30949
31300
  }
30950
31301
  return true;
30951
31302
  };
@@ -30960,7 +31311,7 @@ var InputMaskNumeric = /** @class */ (function (_super) {
30960
31311
  var currentChar = input[inputIndex];
30961
31312
  switch (currentChar) {
30962
31313
  case "-": {
30963
- if (this.allowNegativeValues) {
31314
+ if (this.allowNegativeValues && (this.min === undefined || this.min < 0)) {
30964
31315
  minusCharCount++;
30965
31316
  }
30966
31317
  break;
@@ -30996,6 +31347,9 @@ var InputMaskNumeric = /** @class */ (function (_super) {
30996
31347
  if (matchWholeMask === void 0) { matchWholeMask = false; }
30997
31348
  var input = (src === undefined || src === null) ? "" : src;
30998
31349
  var parsedNumber = this.parseNumber(input);
31350
+ if (!this.validateNumber(parsedNumber, matchWholeMask)) {
31351
+ return null;
31352
+ }
30999
31353
  var displayText = this.displayNumber(parsedNumber, true, matchWholeMask);
31000
31354
  return displayText;
31001
31355
  };
@@ -31015,7 +31369,7 @@ var InputMaskNumeric = /** @class */ (function (_super) {
31015
31369
  var rightPart = args.prevValue.slice(args.selectionEnd);
31016
31370
  var src = leftPart + rightPart;
31017
31371
  var parsedNumber = this.parseNumber(src);
31018
- if (!this.validateNumber(parsedNumber)) {
31372
+ if (!this.validateNumber(parsedNumber, false)) {
31019
31373
  return result;
31020
31374
  }
31021
31375
  var maskedValue = this.getNumberMaskedValue(src);
@@ -31960,6 +32314,7 @@ __webpack_require__.r(__webpack_exports__);
31960
32314
  /* harmony import */ var _drag_drop_panel_helper_v1__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./drag-drop-panel-helper-v1 */ "./src/drag-drop-panel-helper-v1.ts");
31961
32315
  /* harmony import */ var _utils_animation__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/animation */ "./src/utils/animation.ts");
31962
32316
  /* harmony import */ var _global_variables_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./global_variables_utils */ "./src/global_variables_utils.ts");
32317
+ /* harmony import */ var _page__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./page */ "./src/page.ts");
31963
32318
  var __extends = (undefined && undefined.__extends) || (function () {
31964
32319
  var extendStatics = function (d, b) {
31965
32320
  extendStatics = Object.setPrototypeOf ||
@@ -31999,6 +32354,7 @@ var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from
31999
32354
 
32000
32355
 
32001
32356
 
32357
+
32002
32358
  var QuestionRowModel = /** @class */ (function (_super) {
32003
32359
  __extends(QuestionRowModel, _super);
32004
32360
  function QuestionRowModel(panel) {
@@ -34233,7 +34589,7 @@ var PanelModel = /** @class */ (function (_super) {
34233
34589
  Object.defineProperty(PanelModel.prototype, "hasEditButton", {
34234
34590
  get: function () {
34235
34591
  if (this.survey && this.survey.state === "preview")
34236
- return this.depth === 1;
34592
+ return (this.parent && this.parent instanceof _page__WEBPACK_IMPORTED_MODULE_13__["PageModel"]);
34237
34593
  return false;
34238
34594
  },
34239
34595
  enumerable: false,
@@ -34289,7 +34645,10 @@ var PanelModel = /** @class */ (function (_super) {
34289
34645
  };
34290
34646
  Object.defineProperty(PanelModel.prototype, "showPanelAsPage", {
34291
34647
  get: function () {
34292
- return !!this.originalPage;
34648
+ var panel = this;
34649
+ if (!!panel.originalPage)
34650
+ return true;
34651
+ return panel.survey.isShowingPreview && panel.survey.isSinglePage && !!panel.parent && !!panel.parent.originalPage;
34293
34652
  },
34294
34653
  enumerable: false,
34295
34654
  configurable: true
@@ -36701,6 +37060,7 @@ var PopupBaseViewModel = /** @class */ (function (_super) {
36701
37060
  _this.isVisible = _this.model.isVisible;
36702
37061
  };
36703
37062
  _this.model = model;
37063
+ _this.locale = _this.model.locale;
36704
37064
  return _this;
36705
37065
  }
36706
37066
  PopupBaseViewModel.prototype.updateIsVisible = function (val) {
@@ -38209,10 +38569,11 @@ var Question = /** @class */ (function (_super) {
38209
38569
  });
38210
38570
  Question.prototype.getTitleOwner = function () { return this; };
38211
38571
  Question.prototype.getIsTitleRenderedAsString = function () { return this.titleLocation === "hidden"; };
38572
+ Question.prototype.notifySurveyOnChildrenVisibilityChanged = function () { return false; };
38212
38573
  Question.prototype.notifySurveyVisibilityChanged = function () {
38213
38574
  if (!this.survey || this.isLoadingFromJson)
38214
38575
  return;
38215
- this.survey.questionVisibilityChanged(this, this.isVisible);
38576
+ this.survey.questionVisibilityChanged(this, this.isVisible, !this.parentQuestion || this.parentQuestion.notifySurveyOnChildrenVisibilityChanged());
38216
38577
  var isClearOnHidden = this.isClearValueOnHidden;
38217
38578
  if (!this.visible) {
38218
38579
  this.clearValueOnHidding(isClearOnHidden);
@@ -38805,7 +39166,9 @@ var Question = /** @class */ (function (_super) {
38805
39166
  Question.prototype.getRootCss = function () {
38806
39167
  return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_10__["CssClassBuilder"]()
38807
39168
  .append(this.cssRoot)
38808
- .append(this.cssClasses.disabled, this.isReadOnly)
39169
+ .append(this.cssClasses.readOnly, this.isReadOnlyStyle)
39170
+ .append(this.cssClasses.disabled, this.isDisabledStyle)
39171
+ .append(this.cssClasses.preview, this.isPreviewStyle)
38809
39172
  .append(this.cssClasses.invisible, !this.isDesignMode && this.areInvisibleElementsShowing && !this.visible)
38810
39173
  .toString();
38811
39174
  };
@@ -42982,7 +43345,10 @@ var QuestionSelectBase = /** @class */ (function (_super) {
42982
43345
  options.isDisabled = isDisabled;
42983
43346
  options.isChecked = isChecked;
42984
43347
  options.isNone = isNone;
42985
- return builder.append(this.cssClasses.itemDisabled, isDisabled)
43348
+ return builder
43349
+ .append(this.cssClasses.itemDisabled, this.isDisabledStyle)
43350
+ .append(this.cssClasses.itemReadOnly, this.isReadOnlyStyle)
43351
+ .append(this.cssClasses.itemPreview, this.isPreviewStyle)
42986
43352
  .append(this.cssClasses.itemChecked, isChecked)
42987
43353
  .append(this.cssClasses.itemHover, allowHover)
42988
43354
  .append(this.cssClasses.itemNone, isNone)
@@ -43145,6 +43511,9 @@ var QuestionSelectBase = /** @class */ (function (_super) {
43145
43511
  };
43146
43512
  Object.defineProperty(QuestionSelectBase.prototype, "itemSvgIcon", {
43147
43513
  get: function () {
43514
+ if (this.isPreviewStyle && this.cssClasses.itemPreviewSvgIconId) {
43515
+ return this.cssClasses.itemPreviewSvgIconId;
43516
+ }
43148
43517
  return this.cssClasses.itemSvgIconId;
43149
43518
  },
43150
43519
  enumerable: false,
@@ -43704,7 +44073,9 @@ var QuestionBooleanModel = /** @class */ (function (_super) {
43704
44073
  return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_3__["CssClassBuilder"]()
43705
44074
  .append(css.item)
43706
44075
  .append(css.itemOnError, this.hasCssError())
43707
- .append(css.itemDisabled, this.isReadOnly)
44076
+ .append(css.itemDisabled, this.isDisabledStyle)
44077
+ .append(css.itemReadOnly, this.isReadOnlyStyle)
44078
+ .append(css.itemPreview, this.isPreviewStyle)
43708
44079
  .append(css.itemHover, !this.isDesignMode)
43709
44080
  .append(css.itemChecked, !!this.booleanValue)
43710
44081
  .append(css.itemExchanged, !!this.swapOrder)
@@ -43719,6 +44090,9 @@ var QuestionBooleanModel = /** @class */ (function (_super) {
43719
44090
  item: this.cssClasses.checkboxItem,
43720
44091
  itemOnError: this.cssClasses.checkboxItemOnError,
43721
44092
  itemDisabled: this.cssClasses.checkboxItemDisabled,
44093
+ itemDisable: this.cssClasses.checkboxItemDisabled,
44094
+ itemReadOnly: this.cssClasses.checkboxItemReadOnly,
44095
+ itemPreview: this.cssClasses.checkboxItemPreview,
43722
44096
  itemChecked: this.cssClasses.checkboxItemChecked,
43723
44097
  itemIndeterminate: this.cssClasses.checkboxItemIndeterminate
43724
44098
  });
@@ -43726,7 +44100,9 @@ var QuestionBooleanModel = /** @class */ (function (_super) {
43726
44100
  QuestionBooleanModel.prototype.getLabelCss = function (checked) {
43727
44101
  return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_3__["CssClassBuilder"]()
43728
44102
  .append(this.cssClasses.label)
43729
- .append(this.cssClasses.disabledLabel, this.booleanValue === !checked || this.isReadOnly)
44103
+ .append(this.cssClasses.disabledLabel, this.booleanValue === !checked || this.isDisabledStyle)
44104
+ .append(this.cssClasses.labelReadOnly, this.isReadOnlyStyle)
44105
+ .append(this.cssClasses.labelPreview, this.isPreviewStyle)
43730
44106
  .append(this.cssClasses.labelTrue, !this.isIndeterminate && checked === !this.swapOrder)
43731
44107
  .append(this.cssClasses.labelFalse, !this.isIndeterminate && checked === this.swapOrder)
43732
44108
  .toString();
@@ -43744,6 +44120,16 @@ var QuestionBooleanModel = /** @class */ (function (_super) {
43744
44120
  enumerable: false,
43745
44121
  configurable: true
43746
44122
  });
44123
+ Object.defineProperty(QuestionBooleanModel.prototype, "itemSvgIcon", {
44124
+ get: function () {
44125
+ if (this.isPreviewStyle && this.cssClasses.itemPreviewSvgIconId) {
44126
+ return this.cssClasses.itemPreviewSvgIconId;
44127
+ }
44128
+ return this.cssClasses.itemSvgIconId;
44129
+ },
44130
+ enumerable: false,
44131
+ configurable: true
44132
+ });
43747
44133
  Object.defineProperty(QuestionBooleanModel.prototype, "allowClick", {
43748
44134
  get: function () {
43749
44135
  return this.isIndeterminate && !this.isInputReadOnly;
@@ -43809,6 +44195,15 @@ var QuestionBooleanModel = /** @class */ (function (_super) {
43809
44195
  if (css.radioItemChecked && value === this.booleanValue) {
43810
44196
  className = (className ? className + " " : "") + css.radioItemChecked;
43811
44197
  }
44198
+ if (this.isDisabledStyle) {
44199
+ className += " " + css.radioItemDisabled;
44200
+ }
44201
+ if (this.isReadOnlyStyle) {
44202
+ className += " " + css.radioItemReadOnly;
44203
+ }
44204
+ if (this.isPreviewStyle) {
44205
+ className += " " + css.radioItemPreview;
44206
+ }
43812
44207
  return className;
43813
44208
  };
43814
44209
  QuestionBooleanModel.prototype.supportResponsiveness = function () {
@@ -45054,7 +45449,7 @@ var QuestionCommentModel = /** @class */ (function (_super) {
45054
45449
  });
45055
45450
  Object.defineProperty(QuestionCommentModel.prototype, "renderedAllowResize", {
45056
45451
  get: function () {
45057
- return this.allowResize && (this.survey && this.survey.allowResizeComment);
45452
+ return this.allowResize && (this.survey && this.survey.allowResizeComment) && !this.isPreviewStyle && !this.isReadOnlyStyle;
45058
45453
  },
45059
45454
  enumerable: false,
45060
45455
  configurable: true
@@ -45172,6 +45567,7 @@ __webpack_require__.r(__webpack_exports__);
45172
45567
  /* harmony import */ var _textPreProcessor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./textPreProcessor */ "./src/textPreProcessor.ts");
45173
45568
  /* harmony import */ var _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils/cssClassBuilder */ "./src/utils/cssClassBuilder.ts");
45174
45569
  /* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./error */ "./src/error.ts");
45570
+ /* harmony import */ var _console_warnings__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./console-warnings */ "./src/console-warnings.ts");
45175
45571
  var __extends = (undefined && undefined.__extends) || (function () {
45176
45572
  var extendStatics = function (d, b) {
45177
45573
  extendStatics = Object.setPrototypeOf ||
@@ -45194,6 +45590,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
45194
45590
 
45195
45591
 
45196
45592
 
45593
+
45197
45594
  var ComponentQuestionJSON = /** @class */ (function () {
45198
45595
  function ComponentQuestionJSON(name, json) {
45199
45596
  this.name = name;
@@ -45234,6 +45631,11 @@ var ComponentQuestionJSON = /** @class */ (function () {
45234
45631
  return;
45235
45632
  this.json.onUpdateQuestionCssClasses(question, element, css);
45236
45633
  };
45634
+ ComponentQuestionJSON.prototype.onSetQuestionValue = function (question, newValue) {
45635
+ if (!this.json.onSetQuestionValue)
45636
+ return;
45637
+ this.json.onSetQuestionValue(question, newValue);
45638
+ };
45237
45639
  ComponentQuestionJSON.prototype.onPropertyChanged = function (question, propertyName, newValue) {
45238
45640
  if (!this.json.onPropertyChanged)
45239
45641
  return;
@@ -45529,6 +45931,9 @@ var QuestionCustomModelBase = /** @class */ (function (_super) {
45529
45931
  if (updateIsAnswered === void 0) { updateIsAnswered = true; }
45530
45932
  _super.prototype.setQuestionValue.call(this, newValue, updateIsAnswered);
45531
45933
  this.updateElementCss();
45934
+ if (!!this.customQuestion) {
45935
+ this.customQuestion.onSetQuestionValue(this, newValue);
45936
+ }
45532
45937
  };
45533
45938
  QuestionCustomModelBase.prototype.setNewValue = function (newValue) {
45534
45939
  _super.prototype.setNewValue.call(this, newValue);
@@ -45557,6 +45962,9 @@ var QuestionCustomModelBase = /** @class */ (function (_super) {
45557
45962
  QuestionCustomModelBase.prototype.setValue = function (name, newValue, locNotification, allowNotifyValueChanged) {
45558
45963
  if (!this.data)
45559
45964
  return;
45965
+ if (!!this.customQuestion) {
45966
+ this.customQuestion.onValueChanged(this, name, newValue);
45967
+ }
45560
45968
  var newName = this.convertDataName(name);
45561
45969
  var valueForSurvey = this.convertDataValue(name, newValue);
45562
45970
  if (this.valueToDataCallback) {
@@ -45565,9 +45973,6 @@ var QuestionCustomModelBase = /** @class */ (function (_super) {
45565
45973
  this.data.setValue(newName, valueForSurvey, locNotification, allowNotifyValueChanged);
45566
45974
  this.updateIsAnswered();
45567
45975
  this.updateElementCss();
45568
- if (!!this.customQuestion) {
45569
- this.customQuestion.onValueChanged(this, name, newValue);
45570
- }
45571
45976
  };
45572
45977
  QuestionCustomModelBase.prototype.getQuestionByName = function (name) {
45573
45978
  return undefined;
@@ -45777,15 +46182,15 @@ var QuestionCustomModel = /** @class */ (function (_super) {
45777
46182
  if (!qType || !_jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].findClass(qType))
45778
46183
  throw "type attribute in questionJSON is empty or incorrect";
45779
46184
  res = _jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].createClass(qType);
45780
- this.initElement(res);
45781
46185
  res.fromJSON(json.questionJSON);
46186
+ res = this.checkCreatedQuestion(res);
45782
46187
  }
45783
46188
  else {
45784
46189
  if (!!json.createQuestion) {
45785
- res = json.createQuestion();
45786
- this.initElement(res);
46190
+ res = this.checkCreatedQuestion(json.createQuestion());
45787
46191
  }
45788
46192
  }
46193
+ this.initElement(res);
45789
46194
  if (!!res) {
45790
46195
  res.isContentElement = true;
45791
46196
  if (!res.name) {
@@ -45799,6 +46204,20 @@ var QuestionCustomModel = /** @class */ (function (_super) {
45799
46204
  }
45800
46205
  return res;
45801
46206
  };
46207
+ QuestionCustomModel.prototype.checkCreatedQuestion = function (res) {
46208
+ if (!res)
46209
+ return res;
46210
+ if (!res.isQuestion) {
46211
+ if (Array.isArray(res.questions) && res.questions.length > 0) {
46212
+ res = res.questions[0];
46213
+ }
46214
+ else {
46215
+ res = _jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].createClass("text");
46216
+ }
46217
+ _console_warnings__WEBPACK_IMPORTED_MODULE_7__["ConsoleWarnings"].error("Could not create component: '" + this.getType() + "'. questionJSON should be a question.");
46218
+ }
46219
+ return res;
46220
+ };
45802
46221
  QuestionCustomModel.prototype.onSurveyLoad = function () {
45803
46222
  _super.prototype.onSurveyLoad.call(this);
45804
46223
  if (!this.contentQuestion)
@@ -46174,7 +46593,8 @@ var QuestionCompositeModel = /** @class */ (function (_super) {
46174
46593
  this.contentPanel.questions.forEach(function (q) { return q.collectNestedQuestions(questions, visibleOnly); });
46175
46594
  };
46176
46595
  QuestionCompositeModel.prototype.convertDataValue = function (name, newValue) {
46177
- var val = this.getValueForContentPanel(this.value);
46596
+ var val = !!this.contentPanel && !this.isEditingSurveyElement ?
46597
+ this.contentPanel.getValue() : this.getValueForContentPanel(this.value);
46178
46598
  if (!val)
46179
46599
  val = {};
46180
46600
  if (this.isValueEmpty(newValue) && !this.isEditingSurveyElement) {
@@ -46505,7 +46925,9 @@ var QuestionDropdownModel = /** @class */ (function (_super) {
46505
46925
  .append(this.cssClasses.control)
46506
46926
  .append(this.cssClasses.controlEmpty, this.isEmpty())
46507
46927
  .append(this.cssClasses.onError, this.hasCssError())
46508
- .append(this.cssClasses.controlDisabled, this.isReadOnly)
46928
+ .append(this.cssClasses.controlDisabled, this.isDisabledStyle)
46929
+ .append(this.cssClasses.controlReadOnly, this.isReadOnlyStyle)
46930
+ .append(this.cssClasses.controlPreview, this.isPreviewStyle)
46509
46931
  .append(this.cssClasses.controlInputFieldComponent, !!this.inputFieldComponentName)
46510
46932
  .toString();
46511
46933
  };
@@ -48345,6 +48767,9 @@ var QuestionFileModel = /** @class */ (function (_super) {
48345
48767
  get: function () {
48346
48768
  return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_5__["CssClassBuilder"]()
48347
48769
  .append(this.cssClasses.root)
48770
+ .append(this.cssClasses.rootDisabled, this.isDisabledStyle)
48771
+ .append(this.cssClasses.rootReadOnly, this.isReadOnlyStyle)
48772
+ .append(this.cssClasses.rootPreview, this.isPreviewStyle)
48348
48773
  .append(this.cssClasses.rootDragging, this.isDragging)
48349
48774
  .append(this.cssClasses.rootAnswered, this.isAnswered)
48350
48775
  .append(this.cssClasses.single, !this.allowMultiple)
@@ -49413,11 +49838,12 @@ var QuestionImagePickerModel = /** @class */ (function (_super) {
49413
49838
  /**
49414
49839
  * Specifies the height of containers for images or videos. Accepts positive numbers and CSS values.
49415
49840
  *
49416
- * Default value: undefined
49841
+ * Default value: `auto`
49842
+ *
49843
+ * This property allows you to specify the exact image height. If you do not set it, the height will be calculated automatically based on the [`minImageHeight`](#minImageHeight) and [`maxImageHeight`](#maxImageHeight) values and available screen height.
49417
49844
  *
49418
- * Use the `imageFit` property to specify how to fit the images or videos into their containers.
49845
+ * Use the [`imageFit`](#imageFit) property to specify how to fit the images or videos into their containers.
49419
49846
  * @see imageWidth
49420
- * @see imageFit
49421
49847
  */
49422
49848
  get: function () {
49423
49849
  return this.getPropertyValue("imageHeight");
@@ -49440,11 +49866,12 @@ var QuestionImagePickerModel = /** @class */ (function (_super) {
49440
49866
  /**
49441
49867
  * Specifies the width of containers for images or videos. Accepts positive numbers and CSS values.
49442
49868
  *
49443
- * Default value: 200
49869
+ * Default value: `auto`
49444
49870
  *
49445
- * Use the `imageFit` property to specify how to fit the images or videos into their containers.
49871
+ * This property allows you to specify the exact image width. If you do not set it, the width will be calculated automatically based on the [`minImageWidth`](#minImageWidth) and [`maxImageWidth`](#maxImageWidth) values and available screen width.
49872
+ *
49873
+ * Use the [`imageFit`](#imageFit) property to specify how to fit the images or videos into their containers.
49446
49874
  * @see imageHeight
49447
- * @see imageFit
49448
49875
  */
49449
49876
  get: function () {
49450
49877
  return this.getPropertyValue("imageWidth");
@@ -49833,7 +50260,8 @@ var MatrixRowModel = /** @class */ (function (_super) {
49833
50260
  var cssClasses = this.data.cssClasses;
49834
50261
  return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_11__["CssClassBuilder"]().append(cssClasses.row)
49835
50262
  .append(cssClasses.rowError, this.data.hasErrorInRow(this))
49836
- .append(cssClasses.rowDisabled, this.isReadOnly)
50263
+ .append(cssClasses.rowReadOnly, this.isReadOnly)
50264
+ .append(cssClasses.rowDisabled, this.data.isDisabledStyle)
49837
50265
  .toString();
49838
50266
  },
49839
50267
  enumerable: false,
@@ -50159,12 +50587,17 @@ var QuestionMatrixModel = /** @class */ (function (_super) {
50159
50587
  .append(hasCellText ? css.cellText : css.label)
50160
50588
  .append(css.itemOnError, !hasCellText && (this.isAllRowRequired ? this.hasErrorInRow(row) : this.hasCssError()))
50161
50589
  .append(hasCellText ? css.cellTextSelected : css.itemChecked, isChecked)
50162
- .append(hasCellText ? css.cellTextDisabled : css.itemDisabled, isDisabled)
50590
+ .append(hasCellText ? css.cellTextDisabled : css.itemDisabled, this.isDisabledStyle)
50591
+ .append(hasCellText ? css.cellTextReadOnly : css.itemReadOnly, this.isReadOnlyStyle)
50592
+ .append(hasCellText ? css.cellTextPreview : css.itemPreview, this.isPreviewStyle)
50163
50593
  .append(css.itemHover, allowHover && !hasCellText)
50164
50594
  .toString();
50165
50595
  };
50166
50596
  Object.defineProperty(QuestionMatrixModel.prototype, "itemSvgIcon", {
50167
50597
  get: function () {
50598
+ if (this.isPreviewStyle && this.cssClasses.itemPreviewSvgIconId) {
50599
+ return this.cssClasses.itemPreviewSvgIconId;
50600
+ }
50168
50601
  return this.cssClasses.itemSvgIconId;
50169
50602
  },
50170
50603
  enumerable: false,
@@ -55324,7 +55757,9 @@ var QuestionMatrixDropdownRenderedTable = /** @class */ (function (_super) {
55324
55757
  };
55325
55758
  QuestionMatrixDropdownRenderedTable.prototype.getRowDragCell = function (rowIndex) {
55326
55759
  var cell = new QuestionMatrixDropdownRenderedCell();
55327
- cell.isDragHandlerCell = true;
55760
+ var lockedRows = this.matrix.lockedRowCount;
55761
+ cell.isDragHandlerCell = lockedRows < 1 || rowIndex >= lockedRows;
55762
+ cell.isEmpty = !cell.isDragHandlerCell;
55328
55763
  cell.className = this.getActionsCellClassName(cell);
55329
55764
  cell.row = this.matrix.visibleRows[rowIndex];
55330
55765
  return cell;
@@ -55914,7 +56349,7 @@ var QuestionMatrixDynamicModel = /** @class */ (function (_super) {
55914
56349
  _this.registerPropertyChangedHandlers(["hideColumnsIfEmpty", "allowAddRows"], function () {
55915
56350
  _this.updateShowTableAndAddRow();
55916
56351
  });
55917
- _this.registerPropertyChangedHandlers(["allowRowsDragAndDrop", "isReadOnly"], function () { _this.clearRowsAndResetRenderedTable(); });
56352
+ _this.registerPropertyChangedHandlers(["allowRowsDragAndDrop", "isReadOnly", "lockedRowCount"], function () { _this.clearRowsAndResetRenderedTable(); });
55918
56353
  _this.dragOrClickHelper = new _utils_dragOrClickHelper__WEBPACK_IMPORTED_MODULE_9__["DragOrClickHelper"](_this.startDragMatrixRow);
55919
56354
  return _this;
55920
56355
  }
@@ -56145,6 +56580,16 @@ var QuestionMatrixDynamicModel = /** @class */ (function (_super) {
56145
56580
  enumerable: false,
56146
56581
  configurable: true
56147
56582
  });
56583
+ Object.defineProperty(QuestionMatrixDynamicModel.prototype, "lockedRowCount", {
56584
+ get: function () {
56585
+ return this.getPropertyValue("lockedRowCount", 0);
56586
+ },
56587
+ set: function (val) {
56588
+ this.setPropertyValue("lockedRowCount", val);
56589
+ },
56590
+ enumerable: false,
56591
+ configurable: true
56592
+ });
56148
56593
  Object.defineProperty(QuestionMatrixDynamicModel.prototype, "iconDragElement", {
56149
56594
  get: function () {
56150
56595
  return this.cssClasses.iconDragElement;
@@ -56302,7 +56747,10 @@ var QuestionMatrixDynamicModel = /** @class */ (function (_super) {
56302
56747
  QuestionMatrixDynamicModel.prototype.canRemoveRow = function (row) {
56303
56748
  if (!this.survey)
56304
56749
  return true;
56305
- return this.survey.matrixAllowRemoveRow(this, row.index, row);
56750
+ var index = row.rowIndex - 1;
56751
+ if (this.lockedRowCount > 0 && index < this.lockedRowCount)
56752
+ return false;
56753
+ return this.survey.matrixAllowRemoveRow(this, index, row);
56306
56754
  };
56307
56755
  QuestionMatrixDynamicModel.prototype.addRowUI = function () {
56308
56756
  this.addRow(true);
@@ -57964,6 +58412,9 @@ var QuestionMultipleTextModel = /** @class */ (function (_super) {
57964
58412
  QuestionMultipleTextModel.prototype.getItemLabelCss = function (item) {
57965
58413
  return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_7__["CssClassBuilder"]()
57966
58414
  .append(this.cssClasses.itemLabel)
58415
+ .append(this.cssClasses.itemLabelDisabled, this.isDisabledStyle)
58416
+ .append(this.cssClasses.itemLabelReadOnly, this.isReadOnlyStyle)
58417
+ .append(this.cssClasses.itemLabelPreview, this.isPreviewStyle)
57967
58418
  .append(this.cssClasses.itemLabelAnswered, item.editor.isAnswered)
57968
58419
  .append(this.cssClasses.itemLabelAllowFocus, !this.isDesignMode)
57969
58420
  .append(this.cssClasses.itemLabelOnError, item.editor.errors.length > 0)
@@ -59401,12 +59852,13 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
59401
59852
  set: function (val) {
59402
59853
  this.setPropertyValue("showQuestionNumbers", val);
59403
59854
  if (!this.isLoadingFromJson && this.survey) {
59404
- this.survey.questionVisibilityChanged(this, this.visible);
59855
+ this.survey.questionVisibilityChanged(this, this.visible, true);
59405
59856
  }
59406
59857
  },
59407
59858
  enumerable: false,
59408
59859
  configurable: true
59409
59860
  });
59861
+ QuestionPanelDynamicModel.prototype.notifySurveyOnChildrenVisibilityChanged = function () { return this.showQuestionNumbers === "onSurvey"; };
59410
59862
  Object.defineProperty(QuestionPanelDynamicModel.prototype, "panelRemoveButtonLocation", {
59411
59863
  /**
59412
59864
  * Specifies the location of the Delete Panel button relative to panel content.
@@ -59506,15 +59958,16 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
59506
59958
  QuestionPanelDynamicModel.prototype.setVisibleIndex = function (value) {
59507
59959
  if (!this.isVisible)
59508
59960
  return 0;
59509
- var startIndex = this.showQuestionNumbers == "onSurvey" ? value : 0;
59961
+ var onSurveyNumbering = this.showQuestionNumbers === "onSurvey";
59962
+ var startIndex = onSurveyNumbering ? value : 0;
59510
59963
  for (var i = 0; i < this.visiblePanelsCore.length; i++) {
59511
59964
  var counter = this.setPanelVisibleIndex(this.visiblePanelsCore[i], startIndex, this.showQuestionNumbers != "off");
59512
- if (this.showQuestionNumbers == "onSurvey") {
59965
+ if (onSurveyNumbering) {
59513
59966
  startIndex += counter;
59514
59967
  }
59515
59968
  }
59516
- _super.prototype.setVisibleIndex.call(this, this.showQuestionNumbers != "onSurvey" ? value : -1);
59517
- return this.showQuestionNumbers != "onSurvey" ? 1 : startIndex - value;
59969
+ _super.prototype.setVisibleIndex.call(this, !onSurveyNumbering ? value : -1);
59970
+ return !onSurveyNumbering ? 1 : startIndex - value;
59518
59971
  };
59519
59972
  QuestionPanelDynamicModel.prototype.setPanelVisibleIndex = function (panel, index, showIndex) {
59520
59973
  if (!showIndex) {
@@ -60821,6 +61274,8 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
60821
61274
  });
60822
61275
  Object.defineProperty(QuestionPanelDynamicModel.prototype, "showNavigation", {
60823
61276
  get: function () {
61277
+ if (this.isReadOnly && this.visiblePanelCount == 1)
61278
+ return false;
60824
61279
  return this.visiblePanelCount > 0 && !this.showLegacyNavigation && !!this.cssClasses.footer;
60825
61280
  },
60826
61281
  enumerable: false,
@@ -61306,11 +61761,14 @@ var QuestionRankingModel = /** @class */ (function (_super) {
61306
61761
  return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_6__["CssClassBuilder"]()
61307
61762
  .append(this.cssClasses.root)
61308
61763
  .append(this.cssClasses.rootMobileMod, this.isMobileMode())
61309
- .append(this.cssClasses.rootDisabled, this.isReadOnly)
61764
+ .append(this.cssClasses.rootDisabled, this.isDisabledStyle)
61765
+ .append(this.cssClasses.rootReadOnly, this.isReadOnlyStyle)
61766
+ .append(this.cssClasses.rootPreview, this.isPreviewStyle)
61310
61767
  .append(this.cssClasses.rootDesignMode, !!this.isDesignMode)
61311
61768
  .append(this.cssClasses.itemOnError, this.hasCssError())
61312
61769
  .append(this.cssClasses.rootDragHandleAreaIcon, _src_settings__WEBPACK_IMPORTED_MODULE_9__["settings"].rankingDragHandleArea === "icon")
61313
61770
  .append(this.cssClasses.rootSelectToRankMod, this.selectToRankEnabled)
61771
+ .append(this.cssClasses.rootSelectToRankEmptyValueMod, this.isEmpty())
61314
61772
  .append(this.cssClasses.rootSelectToRankAlignHorizontal, this.selectToRankEnabled && this.renderedSelectToRankAreasLayout === "horizontal")
61315
61773
  .append(this.cssClasses.rootSelectToRankAlignVertical, this.selectToRankEnabled && this.renderedSelectToRankAreasLayout === "vertical")
61316
61774
  .toString();
@@ -61318,6 +61776,9 @@ var QuestionRankingModel = /** @class */ (function (_super) {
61318
61776
  enumerable: false,
61319
61777
  configurable: true
61320
61778
  });
61779
+ QuestionRankingModel.prototype.isItemSelectedCore = function (item) {
61780
+ return false;
61781
+ };
61321
61782
  QuestionRankingModel.prototype.getItemClassCore = function (item, options) {
61322
61783
  var itemIndex = this.rankingChoices.indexOf(item);
61323
61784
  var unrankedItemIndex = this.unRankingChoices.indexOf(item);
@@ -61607,14 +62068,18 @@ var QuestionRankingModel = /** @class */ (function (_super) {
61607
62068
  var toIndex;
61608
62069
  if (key === " " && !isMovedElementRanked) {
61609
62070
  toIndex = 0;
62071
+ this.animationAllowed = false;
61610
62072
  dnd.selectToRank(this, fromIndex, toIndex);
62073
+ this.animationAllowed = true;
61611
62074
  this.setValueAfterKeydown(toIndex, "to-container");
61612
62075
  return;
61613
62076
  }
61614
62077
  if (!isMovedElementRanked)
61615
62078
  return;
61616
62079
  if (key === " ") {
62080
+ this.animationAllowed = false;
61617
62081
  dnd.unselectFromRank(this, fromIndex);
62082
+ this.animationAllowed = true;
61618
62083
  toIndex = this.unRankingChoices.indexOf(movedElement); //'this.' leads to actual array after the 'unselectFromRank' method
61619
62084
  this.setValueAfterKeydown(toIndex, "from-container");
61620
62085
  return;
@@ -62568,7 +63033,9 @@ var QuestionRatingModel = /** @class */ (function (_super) {
62568
63033
  };
62569
63034
  QuestionRatingModel.prototype.getItemStyle = function (item, highlight) {
62570
63035
  if (highlight === void 0) { highlight = "none"; }
62571
- if (this.scaleColorMode === "monochrome" && this.rateColorMode == "default")
63036
+ if (this.scaleColorMode === "monochrome" && this.rateColorMode == "default" ||
63037
+ this.isPreviewStyle ||
63038
+ this.isReadOnlyStyle)
62572
63039
  return { borderColor: null, fill: null, backgroundColor: null };
62573
63040
  var index = this.visibleRateValues.indexOf(item);
62574
63041
  var color = this.getRenderedItemColor(index, false);
@@ -62604,6 +63071,8 @@ var QuestionRatingModel = /** @class */ (function (_super) {
62604
63071
  var itemClass = this.cssClasses.item;
62605
63072
  var itemSelectedClass = this.cssClasses.selected;
62606
63073
  var itemDisabledClass = this.cssClasses.itemDisabled;
63074
+ var itemReadOnlyClass = this.cssClasses.itemReadOnly;
63075
+ var itemPreviewClass = this.cssClasses.itemPreview;
62607
63076
  var itemHoverClass = this.cssClasses.itemHover;
62608
63077
  var itemitemOnErrorClass = this.cssClasses.itemOnError;
62609
63078
  var itemHighlightedClass = null;
@@ -62615,6 +63084,8 @@ var QuestionRatingModel = /** @class */ (function (_super) {
62615
63084
  itemClass = this.cssClasses.itemStar;
62616
63085
  itemSelectedClass = this.cssClasses.itemStarSelected;
62617
63086
  itemDisabledClass = this.cssClasses.itemStarDisabled;
63087
+ itemReadOnlyClass = this.cssClasses.itemStarReadOnly;
63088
+ itemPreviewClass = this.cssClasses.itemStarPreview;
62618
63089
  itemHoverClass = this.cssClasses.itemStarHover;
62619
63090
  itemitemOnErrorClass = this.cssClasses.itemStarOnError;
62620
63091
  itemHighlightedClass = this.cssClasses.itemStarHighlighted;
@@ -62625,6 +63096,8 @@ var QuestionRatingModel = /** @class */ (function (_super) {
62625
63096
  itemClass = this.cssClasses.itemSmiley;
62626
63097
  itemSelectedClass = this.cssClasses.itemSmileySelected;
62627
63098
  itemDisabledClass = this.cssClasses.itemSmileyDisabled;
63099
+ itemReadOnlyClass = this.cssClasses.itemSmileyReadOnly;
63100
+ itemPreviewClass = this.cssClasses.itemSmileyPreview;
62628
63101
  itemHoverClass = this.cssClasses.itemSmileyHover;
62629
63102
  itemitemOnErrorClass = this.cssClasses.itemSmileyOnError;
62630
63103
  itemHighlightedClass = this.cssClasses.itemSmileyHighlighted;
@@ -62642,7 +63115,9 @@ var QuestionRatingModel = /** @class */ (function (_super) {
62642
63115
  return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_6__["CssClassBuilder"]()
62643
63116
  .append(itemClass)
62644
63117
  .append(itemSelectedClass, isSelected)
62645
- .append(itemDisabledClass, this.isReadOnly)
63118
+ .append(itemDisabledClass, this.isDisabledStyle)
63119
+ .append(itemReadOnlyClass, this.isReadOnlyStyle)
63120
+ .append(itemPreviewClass, this.isPreviewStyle)
62646
63121
  .append(itemHoverClass, allowHover)
62647
63122
  .append(itemHighlightedClass, isHighlighted)
62648
63123
  .append(itemScaleColoredClass, this.scaleColorMode == "colored")
@@ -63385,6 +63860,13 @@ var QuestionSignaturePadModel = /** @class */ (function (_super) {
63385
63860
  enumerable: false,
63386
63861
  configurable: true
63387
63862
  });
63863
+ Object.defineProperty(QuestionSignaturePadModel.prototype, "locRenderedPlaceholder", {
63864
+ get: function () {
63865
+ return this.isReadOnly ? this.locPlaceholderReadOnly : this.locPlaceholder;
63866
+ },
63867
+ enumerable: false,
63868
+ configurable: true
63869
+ });
63388
63870
  QuestionSignaturePadModel.prototype.nothingIsDrawn = function () {
63389
63871
  var isDrawing = this.isDrawingValue;
63390
63872
  var isEmpty = this.isEmpty();
@@ -63446,6 +63928,9 @@ var QuestionSignaturePadModel = /** @class */ (function (_super) {
63446
63928
  __decorate([
63447
63929
  Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])({ localizable: { defaultStr: "signaturePlaceHolder" } })
63448
63930
  ], QuestionSignaturePadModel.prototype, "placeholder", void 0);
63931
+ __decorate([
63932
+ Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])({ localizable: { defaultStr: "signaturePlaceHolderReadOnly" } })
63933
+ ], QuestionSignaturePadModel.prototype, "placeholderReadOnly", void 0);
63449
63934
  return QuestionSignaturePadModel;
63450
63935
  }(_question_file__WEBPACK_IMPORTED_MODULE_5__["QuestionFileModelBase"]));
63451
63936
 
@@ -63502,6 +63987,13 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_0__["Serializer"].addClass("signaturepad",
63502
63987
  dependsOn: "showPlaceholder",
63503
63988
  visibleIf: function (obj) { return obj.showPlaceholder; }
63504
63989
  },
63990
+ {
63991
+ name: "placeholderReadOnly:text",
63992
+ serializationProperty: "locPlaceholderReadOnly",
63993
+ category: "general",
63994
+ dependsOn: "showPlaceholder",
63995
+ visibleIf: function (obj) { return obj.showPlaceholder; }
63996
+ },
63505
63997
  {
63506
63998
  name: "backgroundImage:file",
63507
63999
  category: "general",
@@ -63707,7 +64199,10 @@ var QuestionTagboxModel = /** @class */ (function (_super) {
63707
64199
  .append(this.cssClasses.control)
63708
64200
  .append(this.cssClasses.controlEmpty, this.isEmpty())
63709
64201
  .append(this.cssClasses.onError, this.hasCssError())
63710
- .append(this.cssClasses.controlDisabled, this.isReadOnly)
64202
+ .append(this.cssClasses.controlEditable, !this.isDisabledStyle && !this.isReadOnlyStyle && !this.isPreviewStyle)
64203
+ .append(this.cssClasses.controlDisabled, this.isDisabledStyle)
64204
+ .append(this.cssClasses.controlReadOnly, this.isReadOnlyStyle)
64205
+ .append(this.cssClasses.controlPreview, this.isPreviewStyle)
63711
64206
  .toString();
63712
64207
  };
63713
64208
  QuestionTagboxModel.prototype.onOpenedCallBack = function () {
@@ -65004,7 +65499,9 @@ var QuestionTextBase = /** @class */ (function (_super) {
65004
65499
  return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_3__["CssClassBuilder"]()
65005
65500
  .append(this.cssClasses.root)
65006
65501
  .append(this.cssClasses.onError, this.hasCssError())
65007
- .append(this.cssClasses.controlDisabled, this.isReadOnly);
65502
+ .append(this.cssClasses.controlDisabled, this.isDisabledStyle)
65503
+ .append(this.cssClasses.controlReadOnly, this.isReadOnlyStyle)
65504
+ .append(this.cssClasses.controlPreview, this.isPreviewStyle);
65008
65505
  };
65009
65506
  QuestionTextBase.prototype.getControlClass = function () {
65010
65507
  return this.getControlCssClassBuilder().toString();
@@ -65413,9 +65910,14 @@ var SurveyQuestionBooleanRadio = /** @class */ (function (_super) {
65413
65910
  SurveyQuestionBooleanRadio.prototype.renderElement = function () {
65414
65911
  var cssClasses = this.question.cssClasses;
65415
65912
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.rootRadio },
65416
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("fieldset", { role: "presentation", className: cssClasses.radioFieldset },
65417
- this.renderRadioItem(false, this.question.locLabelFalse),
65418
- this.renderRadioItem(true, this.question.locLabelTrue))));
65913
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("fieldset", { role: "presentation", className: cssClasses.radioFieldset }, !this.question.swapOrder ?
65914
+ (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null,
65915
+ this.renderRadioItem(false, this.question.locLabelFalse),
65916
+ this.renderRadioItem(true, this.question.locLabelTrue)))
65917
+ :
65918
+ (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null,
65919
+ this.renderRadioItem(true, this.question.locLabelTrue),
65920
+ this.renderRadioItem(false, this.question.locLabelFalse))))));
65419
65921
  };
65420
65922
  return SurveyQuestionBooleanRadio;
65421
65923
  }(_boolean__WEBPACK_IMPORTED_MODULE_3__["SurveyQuestionBoolean"]));
@@ -66179,7 +66681,7 @@ var SurveyFilePreview = /** @class */ (function (_super) {
66179
66681
  var previews = this.question.previewValue.map(function (val, index) {
66180
66682
  if (!val)
66181
66683
  return null;
66182
- return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", { key: _this.question.inputId + "_" + index, className: _this.question.cssClasses.preview, style: { display: _this.question.isPreviewVisible(index) ? undefined : "none" } },
66684
+ return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", { key: _this.question.inputId + "_" + index, className: _this.question.cssClasses.previewItem, style: { display: _this.question.isPreviewVisible(index) ? undefined : "none" } },
66183
66685
  _this.renderFileSign(_this.question.cssClasses.fileSign, val),
66184
66686
  react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: _this.question.getImageWrapperCss(val) },
66185
66687
  _this.question.canPreviewImage(val) ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("img", { src: val.content, style: { height: _this.question.imageHeight, width: _this.question.imageWidth }, alt: "File preview" })) : (_this.question.cssClasses.defaultImage ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: _this.question.cssClasses.defaultImageIconId, size: "auto", className: _this.question.cssClasses.defaultImage })) : null),
@@ -66441,7 +66943,7 @@ var ListItem = /** @class */ (function (_super) {
66441
66943
  event.stopPropagation();
66442
66944
  }, onPointerDown: function (event) { return _this.model.onPointerDown(event, _this.item); } },
66443
66945
  separator,
66444
- contentWrap));
66946
+ contentWrap), this.item);
66445
66947
  };
66446
66948
  ListItem.prototype.componentDidMount = function () {
66447
66949
  _super.prototype.componentDidMount.call(this);
@@ -73680,8 +74182,8 @@ var SurveyQuestionPanelDynamic = /** @class */ (function (_super) {
73680
74182
  SurveyQuestionPanelDynamic.prototype.renderElement = function () {
73681
74183
  var panels = [];
73682
74184
  if (this.question.isRenderModeList) {
73683
- for (var i = 0; i < this.question.panels.length; i++) {
73684
- var panel = this.question.panels[i];
74185
+ for (var i = 0; i < this.question.visiblePanels.length; i++) {
74186
+ var panel = this.question.visiblePanels[i];
73685
74187
  panels.push(react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyQuestionPanelDynamicItem, { key: panel.id, element: panel, question: this.question, index: i, cssClasses: this.question.cssClasses, isDisplayMode: this.isDisplayMode, creator: this.creator }));
73686
74188
  }
73687
74189
  }
@@ -74164,12 +74666,12 @@ var SurveyQuestionRanking = /** @class */ (function (_super) {
74164
74666
  return items;
74165
74667
  };
74166
74668
  SurveyQuestionRanking.prototype.renderItem = function (item, i, handleKeydown, handlePointerDown, cssClasses, itemClass, question, unrankedItem) {
74167
- var key = item.value + "-" + i + "-item";
74669
+ var key = "id-" + item.renderedId;
74168
74670
  var text = this.renderLocString(item.locText);
74169
74671
  var index = i;
74170
- var indexText = this.question.getNumberByIndex(i);
74672
+ var indexText = this.question.getNumberByIndex(index);
74171
74673
  var tabIndex = this.question.getItemTabIndex(item);
74172
- var renderedItem = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyQuestionRankingItem, { key: key, text: text, index: index, indexText: indexText, itemTabIndex: tabIndex, handleKeydown: handleKeydown, handlePointerDown: handlePointerDown, cssClasses: cssClasses, itemClass: itemClass, question: question, unrankedItem: unrankedItem, item: item }));
74674
+ var renderedItem = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyQuestionRankingItem, { key: item.value, text: text, index: index, indexText: indexText, itemTabIndex: tabIndex, handleKeydown: handleKeydown, handlePointerDown: handlePointerDown, cssClasses: cssClasses, itemClass: itemClass, question: question, unrankedItem: unrankedItem, item: item }));
74173
74675
  var survey = this.question.survey;
74174
74676
  var wrappedItem = null;
74175
74677
  if (!!survey) {
@@ -74918,7 +75420,7 @@ var SurveyQuestionSignaturePad = /** @class */ (function (_super) {
74918
75420
  var loadingIndicator = this.question.showLoadingIndicator ? this.renderLoadingIndicator() : null;
74919
75421
  var clearButton = this.renderCleanButton();
74920
75422
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.root, ref: function (root) { return (_this.setControl(root)); }, style: { width: this.question.renderedCanvasWidth } },
74921
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.placeholder, style: { display: this.question.needShowPlaceholder() ? "" : "none" } }, this.renderLocString(this.question.locPlaceholder)),
75423
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.placeholder, style: { display: this.question.needShowPlaceholder() ? "" : "none" } }, this.renderLocString(this.question.locRenderedPlaceholder)),
74922
75424
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", null,
74923
75425
  this.renderBackgroundImage(),
74924
75426
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("canvas", { tabIndex: -1, className: this.question.cssClasses.canvas, onBlur: this.question.onBlur })),
@@ -77632,11 +78134,14 @@ var SurveyElement = /** @class */ (function (_super) {
77632
78134
  enumerable: false,
77633
78135
  configurable: true
77634
78136
  });
78137
+ SurveyElement.prototype.canHaveFrameStyles = function () {
78138
+ return (this.parent !== undefined && (!this.hasParent || this.parent && this.parent.showPanelAsPage));
78139
+ };
77635
78140
  SurveyElement.prototype.getHasFrameV2 = function () {
77636
- return this.shouldAddRunnerStyles() && (!this.hasParent);
78141
+ return this.shouldAddRunnerStyles() && this.canHaveFrameStyles();
77637
78142
  };
77638
78143
  SurveyElement.prototype.getIsNested = function () {
77639
- return this.shouldAddRunnerStyles() && (this.hasParent);
78144
+ return this.shouldAddRunnerStyles() && !this.canHaveFrameStyles();
77640
78145
  };
77641
78146
  SurveyElement.prototype.getCssRoot = function (cssClasses) {
77642
78147
  var isExpanadable = !!this.isCollapsed || !!this.isExpanded;
@@ -77856,9 +78361,31 @@ var SurveyElement = /** @class */ (function (_super) {
77856
78361
  .append(cssClasses.titleExpandable, isExpandable)
77857
78362
  .append(cssClasses.titleExpanded, this.isExpanded)
77858
78363
  .append(cssClasses.titleCollapsed, this.isCollapsed)
77859
- .append(cssClasses.titleDisabled, this.isReadOnly)
78364
+ .append(cssClasses.titleDisabled, this.isDisabledStyle)
78365
+ .append(cssClasses.titleReadOnly, this.isReadOnly)
77860
78366
  .append(cssClasses.titleOnError, this.containsErrors).toString();
77861
78367
  };
78368
+ Object.defineProperty(SurveyElement.prototype, "isDisabledStyle", {
78369
+ get: function () {
78370
+ return !this.isDefaultV2Theme && (this.isReadOnlyStyle || this.isPreviewStyle);
78371
+ },
78372
+ enumerable: false,
78373
+ configurable: true
78374
+ });
78375
+ Object.defineProperty(SurveyElement.prototype, "isReadOnlyStyle", {
78376
+ get: function () {
78377
+ return this.isReadOnly && !this.isPreviewStyle;
78378
+ },
78379
+ enumerable: false,
78380
+ configurable: true
78381
+ });
78382
+ Object.defineProperty(SurveyElement.prototype, "isPreviewStyle", {
78383
+ get: function () {
78384
+ return !!this.survey && this.survey.state === "preview";
78385
+ },
78386
+ enumerable: false,
78387
+ configurable: true
78388
+ });
77862
78389
  SurveyElement.prototype.localeChanged = function () {
77863
78390
  _super.prototype.localeChanged.call(this);
77864
78391
  this.updateDescriptionVisibility(this.description);
@@ -83360,7 +83887,7 @@ var SurveyModel = /** @class */ (function (_super) {
83360
83887
  });
83361
83888
  SurveyModel.prototype.updateProgressText = function (onValueChanged) {
83362
83889
  if (onValueChanged === void 0) { onValueChanged = false; }
83363
- if (this.isCalculatingProgressText)
83890
+ if (this.isCalculatingProgressText || this.isShowingPreview || this.isLockingUpdateOnPageModes)
83364
83891
  return;
83365
83892
  if (onValueChanged &&
83366
83893
  this.progressBarType == "pages" &&
@@ -84658,7 +85185,7 @@ var SurveyModel = /** @class */ (function (_super) {
84658
85185
  this.updateVisibleIndexes();
84659
85186
  };
84660
85187
  SurveyModel.prototype.updateVisibleIndexes = function () {
84661
- if (this.isLoadingFromJson || !!this.isEndLoadingFromJson)
85188
+ if (this.isLoadingFromJson || !!this.isEndLoadingFromJson || this.isLockingUpdateOnPageModes)
84662
85189
  return;
84663
85190
  if (this.isRunningConditions &&
84664
85191
  this.onQuestionVisibleChanged.isEmpty &&
@@ -85265,8 +85792,10 @@ var SurveyModel = /** @class */ (function (_super) {
85265
85792
  return questionClearIf;
85266
85793
  return this.clearInvisibleValues;
85267
85794
  };
85268
- SurveyModel.prototype.questionVisibilityChanged = function (question, newValue) {
85269
- this.updateVisibleIndexes();
85795
+ SurveyModel.prototype.questionVisibilityChanged = function (question, newValue, resetIndexes) {
85796
+ if (resetIndexes) {
85797
+ this.updateVisibleIndexes();
85798
+ }
85270
85799
  this.onQuestionVisibleChanged.fire(this, {
85271
85800
  question: question,
85272
85801
  name: question.name,
@@ -88358,7 +88887,8 @@ __webpack_require__.r(__webpack_exports__);
88358
88887
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationGroupUtils", function() { return AnimationGroupUtils; });
88359
88888
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationBoolean", function() { return AnimationBoolean; });
88360
88889
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationGroup", function() { return AnimationGroup; });
88361
- /* harmony import */ var _taskmanager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./taskmanager */ "./src/utils/taskmanager.ts");
88890
+ /* harmony import */ var _global_variables_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../global_variables_utils */ "./src/global_variables_utils.ts");
88891
+ /* harmony import */ var _taskmanager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./taskmanager */ "./src/utils/taskmanager.ts");
88362
88892
  var __extends = (undefined && undefined.__extends) || (function () {
88363
88893
  var extendStatics = function (d, b) {
88364
88894
  extendStatics = Object.setPrototypeOf ||
@@ -88375,6 +88905,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
88375
88905
  };
88376
88906
  })();
88377
88907
 
88908
+
88378
88909
  var AnimationUtils = /** @class */ (function () {
88379
88910
  function AnimationUtils() {
88380
88911
  this.cancelQueue = [];
@@ -88443,8 +88974,8 @@ var AnimationUtils = /** @class */ (function () {
88443
88974
  element.classList.remove(options.cssClass);
88444
88975
  }
88445
88976
  else {
88446
- requestAnimationFrame(function () {
88447
- requestAnimationFrame(function () {
88977
+ _global_variables_utils__WEBPACK_IMPORTED_MODULE_0__["DomWindowHelper"].requestAnimationFrame(function () {
88978
+ _global_variables_utils__WEBPACK_IMPORTED_MODULE_0__["DomWindowHelper"].requestAnimationFrame(function () {
88448
88979
  element.classList.remove(options.cssClass);
88449
88980
  });
88450
88981
  });
@@ -88465,7 +88996,8 @@ var AnimationUtils = /** @class */ (function () {
88465
88996
  }
88466
88997
  };
88467
88998
  AnimationUtils.prototype.cancel = function () {
88468
- this.cancelQueue.forEach(function (func) { return func(); });
88999
+ var cancelQueue = [].concat(this.cancelQueue);
89000
+ cancelQueue.forEach(function (callback) { return callback(); });
88469
89001
  this.cancelQueue = [];
88470
89002
  };
88471
89003
  return AnimationUtils;
@@ -88483,12 +89015,12 @@ var AnimationPropertyUtils = /** @class */ (function (_super) {
88483
89015
  _this.beforeAnimationRun(element, options);
88484
89016
  _this.runEnterAnimation(element, options);
88485
89017
  };
88486
- requestAnimationFrame(function () {
89018
+ _global_variables_utils__WEBPACK_IMPORTED_MODULE_0__["DomWindowHelper"].requestAnimationFrame(function () {
88487
89019
  if (getElement()) {
88488
89020
  callback();
88489
89021
  }
88490
89022
  else {
88491
- requestAnimationFrame(callback);
89023
+ _global_variables_utils__WEBPACK_IMPORTED_MODULE_0__["DomWindowHelper"].requestAnimationFrame(callback);
88492
89024
  }
88493
89025
  });
88494
89026
  };
@@ -88509,7 +89041,7 @@ var AnimationGroupUtils = /** @class */ (function (_super) {
88509
89041
  var _this = this;
88510
89042
  if (elements.length == 0)
88511
89043
  return;
88512
- requestAnimationFrame(function () {
89044
+ _global_variables_utils__WEBPACK_IMPORTED_MODULE_0__["DomWindowHelper"].requestAnimationFrame(function () {
88513
89045
  var callback = function () {
88514
89046
  elements.forEach(function (el) {
88515
89047
  _this.beforeAnimationRun(getElement(el), getOptions(el));
@@ -88519,7 +89051,7 @@ var AnimationGroupUtils = /** @class */ (function (_super) {
88519
89051
  });
88520
89052
  };
88521
89053
  if (!getElement(elements[0])) {
88522
- requestAnimationFrame(callback);
89054
+ _global_variables_utils__WEBPACK_IMPORTED_MODULE_0__["DomWindowHelper"].requestAnimationFrame(callback);
88523
89055
  }
88524
89056
  else {
88525
89057
  callback();
@@ -88550,7 +89082,7 @@ var AnimationProperty = /** @class */ (function () {
88550
89082
  this.animationOptions = animationOptions;
88551
89083
  this.update = update;
88552
89084
  this.getCurrentValue = getCurrentValue;
88553
- this._debouncedSync = Object(_taskmanager__WEBPACK_IMPORTED_MODULE_0__["debounce"])(function (newValue) {
89085
+ this._debouncedSync = Object(_taskmanager__WEBPACK_IMPORTED_MODULE_1__["debounce"])(function (newValue) {
88554
89086
  _this.animation.cancel();
88555
89087
  _this._sync(newValue);
88556
89088
  });