survey-react 1.9.138 → 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/defaultV2.css +352 -15
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +19 -3
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +175 -19
- package/survey.react.js +557 -97
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/survey.react.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* surveyjs - Survey JavaScript library v1.9.
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.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
|
-
|
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
|
-
|
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
|
-
|
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",
|
@@ -8070,6 +8140,7 @@ var DropdownListModel = /** @class */ (function (_super) {
|
|
8070
8140
|
this._popupModel.isFocusedContainer = false;
|
8071
8141
|
this._popupModel.isFocusedContent = _utils_devices__WEBPACK_IMPORTED_MODULE_9__["IsTouch"];
|
8072
8142
|
this._popupModel.setWidthByTarget = !_utils_devices__WEBPACK_IMPORTED_MODULE_9__["IsTouch"];
|
8143
|
+
this._popupModel.locale = this.question.getLocale();
|
8073
8144
|
this.updatePopupFocusFirstInputSelector();
|
8074
8145
|
this.listModel.registerPropertyChangedHandlers(["showFilter"], function () {
|
8075
8146
|
_this.updatePopupFocusFirstInputSelector();
|
@@ -8170,6 +8241,7 @@ var DropdownListModel = /** @class */ (function (_super) {
|
|
8170
8241
|
}
|
8171
8242
|
});
|
8172
8243
|
model.isAllDataLoaded = !this.question.choicesLazyLoadEnabled;
|
8244
|
+
model.actions.forEach(function (a) { return a.disableTabStop = true; });
|
8173
8245
|
};
|
8174
8246
|
DropdownListModel.prototype.updateCssClasses = function (popupCssClass, listCssClasses) {
|
8175
8247
|
this.popupModel.cssClass = new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_8__["CssClassBuilder"]().append(popupCssClass).append(this.popupCssClasses).toString();
|
@@ -8734,6 +8806,7 @@ var DropdownMultiSelectListModel = /** @class */ (function (_super) {
|
|
8734
8806
|
};
|
8735
8807
|
}
|
8736
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; });
|
8737
8810
|
this.setOnTextSearchCallbackForListModel(res);
|
8738
8811
|
res.forceShowFilter = true;
|
8739
8812
|
return res;
|
@@ -9674,8 +9747,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
9674
9747
|
|
9675
9748
|
var Version;
|
9676
9749
|
var ReleaseDate;
|
9677
|
-
Version = "" + "1.9.
|
9678
|
-
ReleaseDate = "" + "2024-04-
|
9750
|
+
Version = "" + "1.9.139";
|
9751
|
+
ReleaseDate = "" + "2024-04-16";
|
9679
9752
|
function checkLibraryVersion(ver, libraryName) {
|
9680
9753
|
if (Version != ver) {
|
9681
9754
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|
@@ -18348,7 +18421,7 @@ module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\
|
|
18348
18421
|
/*! no static exports found */
|
18349
18422
|
/***/ (function(module, exports) {
|
18350
18423
|
|
18351
|
-
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\"
|
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>"
|
18352
18425
|
|
18353
18426
|
/***/ }),
|
18354
18427
|
|
@@ -18370,7 +18443,7 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
18370
18443
|
/*! no static exports found */
|
18371
18444
|
/***/ (function(module, exports) {
|
18372
18445
|
|
18373
|
-
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\"
|
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>"
|
18374
18447
|
|
18375
18448
|
/***/ }),
|
18376
18449
|
|
@@ -18381,7 +18454,7 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
18381
18454
|
/*! no static exports found */
|
18382
18455
|
/***/ (function(module, exports) {
|
18383
18456
|
|
18384
|
-
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\"
|
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>"
|
18385
18458
|
|
18386
18459
|
/***/ }),
|
18387
18460
|
|
@@ -23510,7 +23583,7 @@ var englishStrings = {
|
|
23510
23583
|
uploadingFile: "Your file is uploading. Please wait several seconds and try again.",
|
23511
23584
|
loadingFile: "Loading...",
|
23512
23585
|
chooseFile: "Choose file(s)...",
|
23513
|
-
noFileChosen: "No file
|
23586
|
+
noFileChosen: "No file selected",
|
23514
23587
|
filePlaceholder: "Drag and drop a file here or click the button below to select a file to upload.",
|
23515
23588
|
confirmDelete: "Are you sure you want to delete this record?",
|
23516
23589
|
keyDuplicationError: "This value should be unique.",
|
@@ -23540,6 +23613,7 @@ var englishStrings = {
|
|
23540
23613
|
timerLimitSurvey: "You have spent {0} of {1} in total.",
|
23541
23614
|
clearCaption: "Clear",
|
23542
23615
|
signaturePlaceHolder: "Sign here",
|
23616
|
+
signaturePlaceHolderReadOnly: "No signature",
|
23543
23617
|
chooseFileCaption: "Select File",
|
23544
23618
|
takePhotoCaption: "Take Photo",
|
23545
23619
|
photoPlaceholder: "Click the button below to take a photo using the camera.",
|
@@ -23556,7 +23630,7 @@ var englishStrings = {
|
|
23556
23630
|
filterStringPlaceholder: "Type to search...",
|
23557
23631
|
emptyMessage: "No data to display",
|
23558
23632
|
noEntriesText: "No entries yet.\nClick the button below to add a new entry.",
|
23559
|
-
noEntriesReadonlyText: "No entries
|
23633
|
+
noEntriesReadonlyText: "No entries",
|
23560
23634
|
more: "More",
|
23561
23635
|
tagboxDoneButtonCaption: "OK",
|
23562
23636
|
selectToRankEmptyRankedAreaText: "All choices are selected for ranking",
|
@@ -30059,9 +30133,6 @@ var InputElementAdapter = /** @class */ (function () {
|
|
30059
30133
|
if (_value === null || _value === undefined) {
|
30060
30134
|
_value = "";
|
30061
30135
|
}
|
30062
|
-
else if (typeof _value !== "string") {
|
30063
|
-
_value = _value.toString();
|
30064
|
-
}
|
30065
30136
|
this.inputElement.value = inputMaskInstance.getMaskedValue(_value);
|
30066
30137
|
this.prevUnmaskedValue = _value;
|
30067
30138
|
inputMaskInstance.onPropertyChanged.add(this.inputMaskInstancePropertyChangedHandler);
|
@@ -30369,6 +30440,17 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
30369
30440
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
30370
30441
|
};
|
30371
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
|
+
};
|
30372
30454
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
30373
30455
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
30374
30456
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
@@ -30380,11 +30462,15 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
30380
30462
|
|
30381
30463
|
function getMaxCountLexem(currentLexemType, count) {
|
30382
30464
|
switch (currentLexemType) {
|
30383
|
-
case
|
30384
|
-
case
|
30465
|
+
case "hour":
|
30466
|
+
case "minute":
|
30467
|
+
case "second":
|
30468
|
+
case "day":
|
30469
|
+
case "month": {
|
30385
30470
|
return 2;
|
30386
30471
|
}
|
30387
|
-
case
|
30472
|
+
case "timeMarker":
|
30473
|
+
case "year": {
|
30388
30474
|
return count;
|
30389
30475
|
}
|
30390
30476
|
default: {
|
@@ -30416,7 +30502,8 @@ function getDefaultYearForValidation(minYear, maxYear) {
|
|
30416
30502
|
function getDateTimeLexems(pattern) {
|
30417
30503
|
var result = [];
|
30418
30504
|
var prevLexemType;
|
30419
|
-
var createOrUpdateLexem = function (currentLexemType, currentChar) {
|
30505
|
+
var createOrUpdateLexem = function (currentLexemType, currentChar, upperCase) {
|
30506
|
+
if (upperCase === void 0) { upperCase = false; }
|
30420
30507
|
if (!!prevLexemType && prevLexemType === currentLexemType) {
|
30421
30508
|
result[result.length - 1].count++;
|
30422
30509
|
var maxCount = getMaxCountLexem(currentLexemType, result[result.length - 1].count);
|
@@ -30425,23 +30512,41 @@ function getDateTimeLexems(pattern) {
|
|
30425
30512
|
else {
|
30426
30513
|
var maxCount = getMaxCountLexem(currentLexemType, 1);
|
30427
30514
|
// result.push({ type: currentLexemType, value: currentChar, count: 1, data: { value: "", isCompleted: false, isCorrect: false }, maxCount: maxCount });
|
30428
|
-
result.push({ type: currentLexemType, value: currentChar, count: 1, maxCount: maxCount });
|
30515
|
+
result.push({ type: currentLexemType, value: currentChar, count: 1, maxCount: maxCount, upperCase: upperCase });
|
30429
30516
|
}
|
30430
30517
|
};
|
30431
30518
|
for (var index = 0; index < pattern.length; index++) {
|
30432
30519
|
var currentChar = pattern[index];
|
30433
30520
|
switch (currentChar) {
|
30434
30521
|
case "m":
|
30435
|
-
createOrUpdateLexem("month",
|
30522
|
+
createOrUpdateLexem("month", currentChar);
|
30436
30523
|
break;
|
30437
30524
|
case "d":
|
30438
|
-
createOrUpdateLexem("day",
|
30525
|
+
createOrUpdateLexem("day", currentChar);
|
30439
30526
|
break;
|
30440
30527
|
case "y":
|
30441
|
-
createOrUpdateLexem("year",
|
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);
|
30442
30547
|
break;
|
30443
30548
|
default:
|
30444
|
-
result.push({ type: "separator", value: currentChar, count: 1, maxCount: 1 });
|
30549
|
+
result.push({ type: "separator", value: currentChar, count: 1, maxCount: 1, upperCase: false });
|
30445
30550
|
break;
|
30446
30551
|
}
|
30447
30552
|
prevLexemType = result[result.length - 1].type;
|
@@ -30472,11 +30577,42 @@ var InputMaskDateTime = /** @class */ (function (_super) {
|
|
30472
30577
|
__extends(InputMaskDateTime, _super);
|
30473
30578
|
function InputMaskDateTime() {
|
30474
30579
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
30580
|
+
_this.defaultDate = "1970-01-01T";
|
30475
30581
|
_this.turnOfTheCentury = 68;
|
30582
|
+
_this.twelve = 12;
|
30476
30583
|
_this.lexems = [];
|
30477
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
|
+
};
|
30478
30593
|
return _this;
|
30479
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
|
+
});
|
30480
30616
|
InputMaskDateTime.prototype.getType = function () {
|
30481
30617
|
return "datetimemask";
|
30482
30618
|
};
|
@@ -30496,20 +30632,45 @@ var InputMaskDateTime = /** @class */ (function (_super) {
|
|
30496
30632
|
var _this = this;
|
30497
30633
|
var date = new Date(str);
|
30498
30634
|
this.initInputDateTimeData();
|
30635
|
+
if (!this.hasDatePart) {
|
30636
|
+
date = new Date(this.defaultDate + str);
|
30637
|
+
}
|
30499
30638
|
if (!isNaN(date)) {
|
30500
30639
|
this.lexems.forEach(function (lexem, index) {
|
30501
30640
|
var inputData = _this.inputDateTimeData[index];
|
30502
30641
|
inputData.isCompleted = true;
|
30503
30642
|
switch (lexem.type) {
|
30504
|
-
case
|
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": {
|
30505
30666
|
inputData.value = date.getDate().toString();
|
30506
30667
|
break;
|
30507
30668
|
}
|
30508
|
-
case
|
30669
|
+
case "month": {
|
30509
30670
|
inputData.value = (date.getMonth() + 1).toString();
|
30510
30671
|
break;
|
30511
30672
|
}
|
30512
|
-
case
|
30673
|
+
case "year": {
|
30513
30674
|
var year = date.getFullYear();
|
30514
30675
|
if (lexem.count == 2)
|
30515
30676
|
year = year % 100;
|
@@ -30533,6 +30694,7 @@ var InputMaskDateTime = /** @class */ (function (_super) {
|
|
30533
30694
|
};
|
30534
30695
|
InputMaskDateTime.prototype.getISO_8601Format = function (dateTime) {
|
30535
30696
|
var date = [];
|
30697
|
+
var time = [];
|
30536
30698
|
if (dateTime.year !== undefined) {
|
30537
30699
|
var year = this.getPlaceholder(4, dateTime.year.toString(), "0") + dateTime.year;
|
30538
30700
|
date.push(year);
|
@@ -30545,7 +30707,26 @@ var InputMaskDateTime = /** @class */ (function (_super) {
|
|
30545
30707
|
var day = this.getPlaceholder(2, dateTime.day.toString(), "0") + dateTime.day;
|
30546
30708
|
date.push(day);
|
30547
30709
|
}
|
30548
|
-
|
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");
|
30549
30730
|
};
|
30550
30731
|
InputMaskDateTime.prototype.isYearValid = function (dateTime) {
|
30551
30732
|
if (dateTime.min === undefined && dateTime.max === undefined)
|
@@ -30555,74 +30736,153 @@ var InputMaskDateTime = /** @class */ (function (_super) {
|
|
30555
30736
|
var maxYearPart = dateTime.max.toISOString().slice(0, data.length);
|
30556
30737
|
return dateTime.year >= parseInt(minYearPart) && dateTime.year <= parseInt(maxYearPart);
|
30557
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
|
+
};
|
30558
30755
|
InputMaskDateTime.prototype.isDateValid = function (dateTime) {
|
30559
30756
|
var min = dateTime.min;
|
30560
30757
|
var max = dateTime.max;
|
30561
30758
|
var year = dateTime.year !== undefined ? dateTime.year : getDefaultYearForValidation(min.getFullYear(), max.getFullYear());
|
30562
30759
|
var month = dateTime.month !== undefined ? dateTime.month : 1;
|
30563
30760
|
var day = dateTime.day !== undefined ? dateTime.day : 1;
|
30564
|
-
var date = new Date(this.getISO_8601Format({ year: year, month: month, day: day }));
|
30565
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)));
|
30566
30764
|
return !isNaN(date) &&
|
30567
30765
|
date.getDate() === day &&
|
30568
30766
|
date.getMonth() === monthIndex &&
|
30569
30767
|
date.getFullYear() === year &&
|
30570
|
-
|
30768
|
+
dateH >= dateTime.min && date <= dateTime.max;
|
30571
30769
|
};
|
30572
30770
|
InputMaskDateTime.prototype.getPlaceholder = function (lexemLength, str, char) {
|
30573
30771
|
var paddingsLength = lexemLength - (str || "").length;
|
30574
30772
|
var paddings = paddingsLength > 0 ? char.repeat(paddingsLength) : "";
|
30575
30773
|
return paddings;
|
30576
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
|
+
};
|
30577
30817
|
InputMaskDateTime.prototype.updateInputDateTimeData = function (newItem, dateTime) {
|
30578
30818
|
var data = newItem.value;
|
30579
30819
|
if (!data)
|
30580
30820
|
return;
|
30581
30821
|
var propertyName = newItem.lexem.type;
|
30582
|
-
|
30822
|
+
var tempDateTime = __assign({}, dateTime);
|
30823
|
+
tempDateTime[propertyName] = parseInt(data);
|
30583
30824
|
if (data.length === newItem.lexem.maxCount) {
|
30584
|
-
if (this.
|
30825
|
+
if (this.isDateValid12(tempDateTime)) {
|
30585
30826
|
newItem.isCompleted = true;
|
30827
|
+
newItem.value = data || undefined;
|
30828
|
+
dateTime[propertyName] = parseInt(data) > 0 ? parseInt(data) : undefined;
|
30829
|
+
return;
|
30586
30830
|
}
|
30587
30831
|
else {
|
30588
30832
|
data = data.slice(0, data.length - 1);
|
30589
30833
|
}
|
30590
30834
|
}
|
30591
|
-
|
30592
|
-
|
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))) {
|
30593
30839
|
data = data.slice(0, data.length - 1);
|
30840
|
+
newItem.isCompleted = false;
|
30594
30841
|
}
|
30595
|
-
else if (
|
30596
|
-
if (this.
|
30842
|
+
else if (validBeginningOfNumber !== undefined && firstDigit > validBeginningOfNumber) {
|
30843
|
+
if (this.isDateValid12(tempDateTime)) {
|
30597
30844
|
newItem.isCompleted = true;
|
30598
30845
|
}
|
30599
30846
|
else {
|
30600
30847
|
data = data.slice(0, data.length - 1);
|
30601
30848
|
}
|
30602
30849
|
}
|
30603
|
-
else if (
|
30604
|
-
|
30605
|
-
|
30606
|
-
var maxValue = propertyName === "month" ? 3 : 10;
|
30607
|
-
newItem.isCompleted = true;
|
30608
|
-
for (var index = 0; index < maxValue; index++) {
|
30609
|
-
dateTime[propertyName] = tempValue + index;
|
30610
|
-
if (this.isDateValid(dateTime)) {
|
30611
|
-
newItem.isCompleted = false;
|
30612
|
-
break;
|
30613
|
-
}
|
30614
|
-
}
|
30615
|
-
dateTime[propertyName] = prevValue;
|
30616
|
-
if (newItem.isCompleted && !this.isDateValid(dateTime)) {
|
30850
|
+
else if (validBeginningOfNumber !== undefined && firstDigit !== 0 && firstDigit <= validBeginningOfNumber) {
|
30851
|
+
this.checkValidationDateTimePart(tempDateTime, propertyName, newItem);
|
30852
|
+
if (newItem.isCompleted && !this.isDateValid12(tempDateTime)) {
|
30617
30853
|
data = data.slice(0, data.length - 1);
|
30618
30854
|
}
|
30619
30855
|
}
|
30620
30856
|
newItem.value = data || undefined;
|
30621
30857
|
dateTime[propertyName] = parseInt(data) > 0 ? parseInt(data) : undefined;
|
30622
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
|
+
};
|
30623
30877
|
InputMaskDateTime.prototype.getCorrectDatePartFormat = function (inputData, matchWholeMask) {
|
30624
30878
|
var lexem = inputData.lexem;
|
30625
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
|
+
}
|
30626
30886
|
if (!!dataStr && inputData.isCompleted) {
|
30627
30887
|
dataStr = parseInt(dataStr).toString();
|
30628
30888
|
}
|
@@ -30640,12 +30900,24 @@ var InputMaskDateTime = /** @class */ (function (_super) {
|
|
30640
30900
|
return dataStr;
|
30641
30901
|
};
|
30642
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
|
+
}
|
30643
30912
|
var tempDateTime = {
|
30913
|
+
hour: undefined,
|
30914
|
+
minute: undefined,
|
30915
|
+
second: undefined,
|
30644
30916
|
day: undefined,
|
30645
30917
|
month: undefined,
|
30646
30918
|
year: undefined,
|
30647
|
-
min: new Date(
|
30648
|
-
max: new Date(
|
30919
|
+
min: new Date(isoMin),
|
30920
|
+
max: new Date(isoMax)
|
30649
30921
|
};
|
30650
30922
|
return tempDateTime;
|
30651
30923
|
};
|
@@ -30672,6 +30944,10 @@ var InputMaskDateTime = /** @class */ (function (_super) {
|
|
30672
30944
|
for (var index = 0; index < this.inputDateTimeData.length; index++) {
|
30673
30945
|
var inputData = this.inputDateTimeData[index];
|
30674
30946
|
switch (inputData.lexem.type) {
|
30947
|
+
case "timeMarker":
|
30948
|
+
case "hour":
|
30949
|
+
case "minute":
|
30950
|
+
case "second":
|
30675
30951
|
case "day":
|
30676
30952
|
case "month":
|
30677
30953
|
case "year":
|
@@ -30680,7 +30956,7 @@ var InputMaskDateTime = /** @class */ (function (_super) {
|
|
30680
30956
|
return result;
|
30681
30957
|
}
|
30682
30958
|
else {
|
30683
|
-
var _matchWholeMask = matchWholeMask || lastItemWithDataIndex
|
30959
|
+
var _matchWholeMask = matchWholeMask || lastItemWithDataIndex > index;
|
30684
30960
|
var data = this.getCorrectDatePartFormat(inputData, _matchWholeMask);
|
30685
30961
|
result += (prevSeparator + data);
|
30686
30962
|
prevIsCompleted = inputData.isCompleted;
|
@@ -30693,15 +30969,38 @@ var InputMaskDateTime = /** @class */ (function (_super) {
|
|
30693
30969
|
}
|
30694
30970
|
return result;
|
30695
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
|
+
};
|
30696
30987
|
InputMaskDateTime.prototype.setInputDateTimeData = function (numberParts) {
|
30697
30988
|
var _this = this;
|
30698
30989
|
var numberPartsArrayIndex = 0;
|
30699
30990
|
this.initInputDateTimeData();
|
30700
30991
|
this.lexems.forEach(function (lexem, index) {
|
30701
|
-
if (
|
30992
|
+
if (numberParts.length > 0 && numberPartsArrayIndex < numberParts.length) {
|
30993
|
+
if (lexem.type === "separator")
|
30994
|
+
return;
|
30702
30995
|
var inputData = _this.inputDateTimeData[index];
|
30703
30996
|
var currentPart = numberParts[numberPartsArrayIndex];
|
30704
|
-
var _data =
|
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
|
+
}
|
30705
31004
|
inputData.value = _data.slice(0, lexem.maxCount);
|
30706
31005
|
numberPartsArrayIndex++;
|
30707
31006
|
}
|
@@ -30714,7 +31013,14 @@ var InputMaskDateTime = /** @class */ (function (_super) {
|
|
30714
31013
|
var inputParts = this.getParts(input);
|
30715
31014
|
this.setInputDateTimeData(inputParts);
|
30716
31015
|
var tempDateTime = this.createIDateTimeComposition();
|
30717
|
-
this.inputDateTimeData.forEach(function (itemData) {
|
31016
|
+
this.inputDateTimeData.forEach(function (itemData) {
|
31017
|
+
if (itemData.lexem.type === "timeMarker") {
|
31018
|
+
_this.updateTimeMarkerInputDateTimeData(itemData, tempDateTime);
|
31019
|
+
}
|
31020
|
+
else {
|
31021
|
+
_this.updateInputDateTimeData(itemData, tempDateTime);
|
31022
|
+
}
|
31023
|
+
});
|
30718
31024
|
var result = this.getFormatedString(matchWholeMask);
|
30719
31025
|
return result;
|
30720
31026
|
};
|
@@ -30732,6 +31038,11 @@ var InputMaskDateTime = /** @class */ (function (_super) {
|
|
30732
31038
|
foundPseudoSeparator = false;
|
30733
31039
|
curPart += inputChar;
|
30734
31040
|
}
|
31041
|
+
else if (lexemsWithValue[inputParts.length].type === "timeMarker") {
|
31042
|
+
foundSeparator = false;
|
31043
|
+
foundPseudoSeparator = false;
|
31044
|
+
curPart += inputChar;
|
31045
|
+
}
|
30735
31046
|
else {
|
30736
31047
|
if (separators.indexOf(inputChar) !== -1) {
|
30737
31048
|
if (!foundPseudoSeparator) {
|
@@ -30760,17 +31071,27 @@ var InputMaskDateTime = /** @class */ (function (_super) {
|
|
30760
31071
|
};
|
30761
31072
|
InputMaskDateTime.prototype.getUnmaskedValue = function (src) {
|
30762
31073
|
var _this = this;
|
31074
|
+
var _a;
|
30763
31075
|
var input = (src === undefined || src === null) ? "" : src.toString();
|
30764
31076
|
var inputParts = this.getParts(input);
|
30765
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];
|
30766
31079
|
var tempDateTime = this.createIDateTimeComposition();
|
31080
|
+
var uncompleted = false;
|
30767
31081
|
this.inputDateTimeData.forEach(function (inputData) {
|
30768
31082
|
var str = inputData.value;
|
30769
|
-
if (
|
30770
|
-
return
|
30771
|
-
|
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;
|
30772
31093
|
});
|
30773
|
-
return this.getISO_8601Format(tempDateTime);
|
31094
|
+
return uncompleted ? "" : this.getISO_8601Format(tempDateTime);
|
30774
31095
|
};
|
30775
31096
|
InputMaskDateTime.prototype.getMaskedValue = function (src) {
|
30776
31097
|
return this.getMaskedStrFromISO(src);
|
@@ -34324,7 +34645,10 @@ var PanelModel = /** @class */ (function (_super) {
|
|
34324
34645
|
};
|
34325
34646
|
Object.defineProperty(PanelModel.prototype, "showPanelAsPage", {
|
34326
34647
|
get: function () {
|
34327
|
-
|
34648
|
+
var panel = this;
|
34649
|
+
if (!!panel.originalPage)
|
34650
|
+
return true;
|
34651
|
+
return panel.survey.isShowingPreview && panel.survey.isSinglePage && !!panel.parent && !!panel.parent.originalPage;
|
34328
34652
|
},
|
34329
34653
|
enumerable: false,
|
34330
34654
|
configurable: true
|
@@ -36736,6 +37060,7 @@ var PopupBaseViewModel = /** @class */ (function (_super) {
|
|
36736
37060
|
_this.isVisible = _this.model.isVisible;
|
36737
37061
|
};
|
36738
37062
|
_this.model = model;
|
37063
|
+
_this.locale = _this.model.locale;
|
36739
37064
|
return _this;
|
36740
37065
|
}
|
36741
37066
|
PopupBaseViewModel.prototype.updateIsVisible = function (val) {
|
@@ -38244,10 +38569,11 @@ var Question = /** @class */ (function (_super) {
|
|
38244
38569
|
});
|
38245
38570
|
Question.prototype.getTitleOwner = function () { return this; };
|
38246
38571
|
Question.prototype.getIsTitleRenderedAsString = function () { return this.titleLocation === "hidden"; };
|
38572
|
+
Question.prototype.notifySurveyOnChildrenVisibilityChanged = function () { return false; };
|
38247
38573
|
Question.prototype.notifySurveyVisibilityChanged = function () {
|
38248
38574
|
if (!this.survey || this.isLoadingFromJson)
|
38249
38575
|
return;
|
38250
|
-
this.survey.questionVisibilityChanged(this, this.isVisible);
|
38576
|
+
this.survey.questionVisibilityChanged(this, this.isVisible, !this.parentQuestion || this.parentQuestion.notifySurveyOnChildrenVisibilityChanged());
|
38251
38577
|
var isClearOnHidden = this.isClearValueOnHidden;
|
38252
38578
|
if (!this.visible) {
|
38253
38579
|
this.clearValueOnHidding(isClearOnHidden);
|
@@ -38840,7 +39166,9 @@ var Question = /** @class */ (function (_super) {
|
|
38840
39166
|
Question.prototype.getRootCss = function () {
|
38841
39167
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_10__["CssClassBuilder"]()
|
38842
39168
|
.append(this.cssRoot)
|
38843
|
-
.append(this.cssClasses.
|
39169
|
+
.append(this.cssClasses.readOnly, this.isReadOnlyStyle)
|
39170
|
+
.append(this.cssClasses.disabled, this.isDisabledStyle)
|
39171
|
+
.append(this.cssClasses.preview, this.isPreviewStyle)
|
38844
39172
|
.append(this.cssClasses.invisible, !this.isDesignMode && this.areInvisibleElementsShowing && !this.visible)
|
38845
39173
|
.toString();
|
38846
39174
|
};
|
@@ -43017,7 +43345,10 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
43017
43345
|
options.isDisabled = isDisabled;
|
43018
43346
|
options.isChecked = isChecked;
|
43019
43347
|
options.isNone = isNone;
|
43020
|
-
return builder
|
43348
|
+
return builder
|
43349
|
+
.append(this.cssClasses.itemDisabled, this.isDisabledStyle)
|
43350
|
+
.append(this.cssClasses.itemReadOnly, this.isReadOnlyStyle)
|
43351
|
+
.append(this.cssClasses.itemPreview, this.isPreviewStyle)
|
43021
43352
|
.append(this.cssClasses.itemChecked, isChecked)
|
43022
43353
|
.append(this.cssClasses.itemHover, allowHover)
|
43023
43354
|
.append(this.cssClasses.itemNone, isNone)
|
@@ -43180,6 +43511,9 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
43180
43511
|
};
|
43181
43512
|
Object.defineProperty(QuestionSelectBase.prototype, "itemSvgIcon", {
|
43182
43513
|
get: function () {
|
43514
|
+
if (this.isPreviewStyle && this.cssClasses.itemPreviewSvgIconId) {
|
43515
|
+
return this.cssClasses.itemPreviewSvgIconId;
|
43516
|
+
}
|
43183
43517
|
return this.cssClasses.itemSvgIconId;
|
43184
43518
|
},
|
43185
43519
|
enumerable: false,
|
@@ -43739,7 +44073,9 @@ var QuestionBooleanModel = /** @class */ (function (_super) {
|
|
43739
44073
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_3__["CssClassBuilder"]()
|
43740
44074
|
.append(css.item)
|
43741
44075
|
.append(css.itemOnError, this.hasCssError())
|
43742
|
-
.append(css.itemDisabled, this.
|
44076
|
+
.append(css.itemDisabled, this.isDisabledStyle)
|
44077
|
+
.append(css.itemReadOnly, this.isReadOnlyStyle)
|
44078
|
+
.append(css.itemPreview, this.isPreviewStyle)
|
43743
44079
|
.append(css.itemHover, !this.isDesignMode)
|
43744
44080
|
.append(css.itemChecked, !!this.booleanValue)
|
43745
44081
|
.append(css.itemExchanged, !!this.swapOrder)
|
@@ -43754,6 +44090,9 @@ var QuestionBooleanModel = /** @class */ (function (_super) {
|
|
43754
44090
|
item: this.cssClasses.checkboxItem,
|
43755
44091
|
itemOnError: this.cssClasses.checkboxItemOnError,
|
43756
44092
|
itemDisabled: this.cssClasses.checkboxItemDisabled,
|
44093
|
+
itemDisable: this.cssClasses.checkboxItemDisabled,
|
44094
|
+
itemReadOnly: this.cssClasses.checkboxItemReadOnly,
|
44095
|
+
itemPreview: this.cssClasses.checkboxItemPreview,
|
43757
44096
|
itemChecked: this.cssClasses.checkboxItemChecked,
|
43758
44097
|
itemIndeterminate: this.cssClasses.checkboxItemIndeterminate
|
43759
44098
|
});
|
@@ -43761,7 +44100,9 @@ var QuestionBooleanModel = /** @class */ (function (_super) {
|
|
43761
44100
|
QuestionBooleanModel.prototype.getLabelCss = function (checked) {
|
43762
44101
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_3__["CssClassBuilder"]()
|
43763
44102
|
.append(this.cssClasses.label)
|
43764
|
-
.append(this.cssClasses.disabledLabel, this.booleanValue === !checked || this.
|
44103
|
+
.append(this.cssClasses.disabledLabel, this.booleanValue === !checked || this.isDisabledStyle)
|
44104
|
+
.append(this.cssClasses.labelReadOnly, this.isReadOnlyStyle)
|
44105
|
+
.append(this.cssClasses.labelPreview, this.isPreviewStyle)
|
43765
44106
|
.append(this.cssClasses.labelTrue, !this.isIndeterminate && checked === !this.swapOrder)
|
43766
44107
|
.append(this.cssClasses.labelFalse, !this.isIndeterminate && checked === this.swapOrder)
|
43767
44108
|
.toString();
|
@@ -43779,6 +44120,16 @@ var QuestionBooleanModel = /** @class */ (function (_super) {
|
|
43779
44120
|
enumerable: false,
|
43780
44121
|
configurable: true
|
43781
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
|
+
});
|
43782
44133
|
Object.defineProperty(QuestionBooleanModel.prototype, "allowClick", {
|
43783
44134
|
get: function () {
|
43784
44135
|
return this.isIndeterminate && !this.isInputReadOnly;
|
@@ -43844,6 +44195,15 @@ var QuestionBooleanModel = /** @class */ (function (_super) {
|
|
43844
44195
|
if (css.radioItemChecked && value === this.booleanValue) {
|
43845
44196
|
className = (className ? className + " " : "") + css.radioItemChecked;
|
43846
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
|
+
}
|
43847
44207
|
return className;
|
43848
44208
|
};
|
43849
44209
|
QuestionBooleanModel.prototype.supportResponsiveness = function () {
|
@@ -45089,7 +45449,7 @@ var QuestionCommentModel = /** @class */ (function (_super) {
|
|
45089
45449
|
});
|
45090
45450
|
Object.defineProperty(QuestionCommentModel.prototype, "renderedAllowResize", {
|
45091
45451
|
get: function () {
|
45092
|
-
return this.allowResize && (this.survey && this.survey.allowResizeComment);
|
45452
|
+
return this.allowResize && (this.survey && this.survey.allowResizeComment) && !this.isPreviewStyle && !this.isReadOnlyStyle;
|
45093
45453
|
},
|
45094
45454
|
enumerable: false,
|
45095
45455
|
configurable: true
|
@@ -45207,6 +45567,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
45207
45567
|
/* harmony import */ var _textPreProcessor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./textPreProcessor */ "./src/textPreProcessor.ts");
|
45208
45568
|
/* harmony import */ var _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils/cssClassBuilder */ "./src/utils/cssClassBuilder.ts");
|
45209
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");
|
45210
45571
|
var __extends = (undefined && undefined.__extends) || (function () {
|
45211
45572
|
var extendStatics = function (d, b) {
|
45212
45573
|
extendStatics = Object.setPrototypeOf ||
|
@@ -45229,6 +45590,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
45229
45590
|
|
45230
45591
|
|
45231
45592
|
|
45593
|
+
|
45232
45594
|
var ComponentQuestionJSON = /** @class */ (function () {
|
45233
45595
|
function ComponentQuestionJSON(name, json) {
|
45234
45596
|
this.name = name;
|
@@ -45820,15 +46182,15 @@ var QuestionCustomModel = /** @class */ (function (_super) {
|
|
45820
46182
|
if (!qType || !_jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].findClass(qType))
|
45821
46183
|
throw "type attribute in questionJSON is empty or incorrect";
|
45822
46184
|
res = _jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].createClass(qType);
|
45823
|
-
this.initElement(res);
|
45824
46185
|
res.fromJSON(json.questionJSON);
|
46186
|
+
res = this.checkCreatedQuestion(res);
|
45825
46187
|
}
|
45826
46188
|
else {
|
45827
46189
|
if (!!json.createQuestion) {
|
45828
|
-
res = json.createQuestion();
|
45829
|
-
this.initElement(res);
|
46190
|
+
res = this.checkCreatedQuestion(json.createQuestion());
|
45830
46191
|
}
|
45831
46192
|
}
|
46193
|
+
this.initElement(res);
|
45832
46194
|
if (!!res) {
|
45833
46195
|
res.isContentElement = true;
|
45834
46196
|
if (!res.name) {
|
@@ -45842,6 +46204,20 @@ var QuestionCustomModel = /** @class */ (function (_super) {
|
|
45842
46204
|
}
|
45843
46205
|
return res;
|
45844
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
|
+
};
|
45845
46221
|
QuestionCustomModel.prototype.onSurveyLoad = function () {
|
45846
46222
|
_super.prototype.onSurveyLoad.call(this);
|
45847
46223
|
if (!this.contentQuestion)
|
@@ -46549,7 +46925,9 @@ var QuestionDropdownModel = /** @class */ (function (_super) {
|
|
46549
46925
|
.append(this.cssClasses.control)
|
46550
46926
|
.append(this.cssClasses.controlEmpty, this.isEmpty())
|
46551
46927
|
.append(this.cssClasses.onError, this.hasCssError())
|
46552
|
-
.append(this.cssClasses.controlDisabled, this.
|
46928
|
+
.append(this.cssClasses.controlDisabled, this.isDisabledStyle)
|
46929
|
+
.append(this.cssClasses.controlReadOnly, this.isReadOnlyStyle)
|
46930
|
+
.append(this.cssClasses.controlPreview, this.isPreviewStyle)
|
46553
46931
|
.append(this.cssClasses.controlInputFieldComponent, !!this.inputFieldComponentName)
|
46554
46932
|
.toString();
|
46555
46933
|
};
|
@@ -48389,6 +48767,9 @@ var QuestionFileModel = /** @class */ (function (_super) {
|
|
48389
48767
|
get: function () {
|
48390
48768
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_5__["CssClassBuilder"]()
|
48391
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)
|
48392
48773
|
.append(this.cssClasses.rootDragging, this.isDragging)
|
48393
48774
|
.append(this.cssClasses.rootAnswered, this.isAnswered)
|
48394
48775
|
.append(this.cssClasses.single, !this.allowMultiple)
|
@@ -49879,7 +50260,8 @@ var MatrixRowModel = /** @class */ (function (_super) {
|
|
49879
50260
|
var cssClasses = this.data.cssClasses;
|
49880
50261
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_11__["CssClassBuilder"]().append(cssClasses.row)
|
49881
50262
|
.append(cssClasses.rowError, this.data.hasErrorInRow(this))
|
49882
|
-
.append(cssClasses.
|
50263
|
+
.append(cssClasses.rowReadOnly, this.isReadOnly)
|
50264
|
+
.append(cssClasses.rowDisabled, this.data.isDisabledStyle)
|
49883
50265
|
.toString();
|
49884
50266
|
},
|
49885
50267
|
enumerable: false,
|
@@ -50205,12 +50587,17 @@ var QuestionMatrixModel = /** @class */ (function (_super) {
|
|
50205
50587
|
.append(hasCellText ? css.cellText : css.label)
|
50206
50588
|
.append(css.itemOnError, !hasCellText && (this.isAllRowRequired ? this.hasErrorInRow(row) : this.hasCssError()))
|
50207
50589
|
.append(hasCellText ? css.cellTextSelected : css.itemChecked, isChecked)
|
50208
|
-
.append(hasCellText ? css.cellTextDisabled : css.itemDisabled,
|
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)
|
50209
50593
|
.append(css.itemHover, allowHover && !hasCellText)
|
50210
50594
|
.toString();
|
50211
50595
|
};
|
50212
50596
|
Object.defineProperty(QuestionMatrixModel.prototype, "itemSvgIcon", {
|
50213
50597
|
get: function () {
|
50598
|
+
if (this.isPreviewStyle && this.cssClasses.itemPreviewSvgIconId) {
|
50599
|
+
return this.cssClasses.itemPreviewSvgIconId;
|
50600
|
+
}
|
50214
50601
|
return this.cssClasses.itemSvgIconId;
|
50215
50602
|
},
|
50216
50603
|
enumerable: false,
|
@@ -55372,6 +55759,7 @@ var QuestionMatrixDropdownRenderedTable = /** @class */ (function (_super) {
|
|
55372
55759
|
var cell = new QuestionMatrixDropdownRenderedCell();
|
55373
55760
|
var lockedRows = this.matrix.lockedRowCount;
|
55374
55761
|
cell.isDragHandlerCell = lockedRows < 1 || rowIndex >= lockedRows;
|
55762
|
+
cell.isEmpty = !cell.isDragHandlerCell;
|
55375
55763
|
cell.className = this.getActionsCellClassName(cell);
|
55376
55764
|
cell.row = this.matrix.visibleRows[rowIndex];
|
55377
55765
|
return cell;
|
@@ -58024,6 +58412,9 @@ var QuestionMultipleTextModel = /** @class */ (function (_super) {
|
|
58024
58412
|
QuestionMultipleTextModel.prototype.getItemLabelCss = function (item) {
|
58025
58413
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_7__["CssClassBuilder"]()
|
58026
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)
|
58027
58418
|
.append(this.cssClasses.itemLabelAnswered, item.editor.isAnswered)
|
58028
58419
|
.append(this.cssClasses.itemLabelAllowFocus, !this.isDesignMode)
|
58029
58420
|
.append(this.cssClasses.itemLabelOnError, item.editor.errors.length > 0)
|
@@ -59461,12 +59852,13 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
59461
59852
|
set: function (val) {
|
59462
59853
|
this.setPropertyValue("showQuestionNumbers", val);
|
59463
59854
|
if (!this.isLoadingFromJson && this.survey) {
|
59464
|
-
this.survey.questionVisibilityChanged(this, this.visible);
|
59855
|
+
this.survey.questionVisibilityChanged(this, this.visible, true);
|
59465
59856
|
}
|
59466
59857
|
},
|
59467
59858
|
enumerable: false,
|
59468
59859
|
configurable: true
|
59469
59860
|
});
|
59861
|
+
QuestionPanelDynamicModel.prototype.notifySurveyOnChildrenVisibilityChanged = function () { return this.showQuestionNumbers === "onSurvey"; };
|
59470
59862
|
Object.defineProperty(QuestionPanelDynamicModel.prototype, "panelRemoveButtonLocation", {
|
59471
59863
|
/**
|
59472
59864
|
* Specifies the location of the Delete Panel button relative to panel content.
|
@@ -59566,15 +59958,16 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
59566
59958
|
QuestionPanelDynamicModel.prototype.setVisibleIndex = function (value) {
|
59567
59959
|
if (!this.isVisible)
|
59568
59960
|
return 0;
|
59569
|
-
var
|
59961
|
+
var onSurveyNumbering = this.showQuestionNumbers === "onSurvey";
|
59962
|
+
var startIndex = onSurveyNumbering ? value : 0;
|
59570
59963
|
for (var i = 0; i < this.visiblePanelsCore.length; i++) {
|
59571
59964
|
var counter = this.setPanelVisibleIndex(this.visiblePanelsCore[i], startIndex, this.showQuestionNumbers != "off");
|
59572
|
-
if (
|
59965
|
+
if (onSurveyNumbering) {
|
59573
59966
|
startIndex += counter;
|
59574
59967
|
}
|
59575
59968
|
}
|
59576
|
-
_super.prototype.setVisibleIndex.call(this,
|
59577
|
-
return
|
59969
|
+
_super.prototype.setVisibleIndex.call(this, !onSurveyNumbering ? value : -1);
|
59970
|
+
return !onSurveyNumbering ? 1 : startIndex - value;
|
59578
59971
|
};
|
59579
59972
|
QuestionPanelDynamicModel.prototype.setPanelVisibleIndex = function (panel, index, showIndex) {
|
59580
59973
|
if (!showIndex) {
|
@@ -60881,6 +61274,8 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
60881
61274
|
});
|
60882
61275
|
Object.defineProperty(QuestionPanelDynamicModel.prototype, "showNavigation", {
|
60883
61276
|
get: function () {
|
61277
|
+
if (this.isReadOnly && this.visiblePanelCount == 1)
|
61278
|
+
return false;
|
60884
61279
|
return this.visiblePanelCount > 0 && !this.showLegacyNavigation && !!this.cssClasses.footer;
|
60885
61280
|
},
|
60886
61281
|
enumerable: false,
|
@@ -61366,11 +61761,14 @@ var QuestionRankingModel = /** @class */ (function (_super) {
|
|
61366
61761
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_6__["CssClassBuilder"]()
|
61367
61762
|
.append(this.cssClasses.root)
|
61368
61763
|
.append(this.cssClasses.rootMobileMod, this.isMobileMode())
|
61369
|
-
.append(this.cssClasses.rootDisabled, this.
|
61764
|
+
.append(this.cssClasses.rootDisabled, this.isDisabledStyle)
|
61765
|
+
.append(this.cssClasses.rootReadOnly, this.isReadOnlyStyle)
|
61766
|
+
.append(this.cssClasses.rootPreview, this.isPreviewStyle)
|
61370
61767
|
.append(this.cssClasses.rootDesignMode, !!this.isDesignMode)
|
61371
61768
|
.append(this.cssClasses.itemOnError, this.hasCssError())
|
61372
61769
|
.append(this.cssClasses.rootDragHandleAreaIcon, _src_settings__WEBPACK_IMPORTED_MODULE_9__["settings"].rankingDragHandleArea === "icon")
|
61373
61770
|
.append(this.cssClasses.rootSelectToRankMod, this.selectToRankEnabled)
|
61771
|
+
.append(this.cssClasses.rootSelectToRankEmptyValueMod, this.isEmpty())
|
61374
61772
|
.append(this.cssClasses.rootSelectToRankAlignHorizontal, this.selectToRankEnabled && this.renderedSelectToRankAreasLayout === "horizontal")
|
61375
61773
|
.append(this.cssClasses.rootSelectToRankAlignVertical, this.selectToRankEnabled && this.renderedSelectToRankAreasLayout === "vertical")
|
61376
61774
|
.toString();
|
@@ -61378,6 +61776,9 @@ var QuestionRankingModel = /** @class */ (function (_super) {
|
|
61378
61776
|
enumerable: false,
|
61379
61777
|
configurable: true
|
61380
61778
|
});
|
61779
|
+
QuestionRankingModel.prototype.isItemSelectedCore = function (item) {
|
61780
|
+
return false;
|
61781
|
+
};
|
61381
61782
|
QuestionRankingModel.prototype.getItemClassCore = function (item, options) {
|
61382
61783
|
var itemIndex = this.rankingChoices.indexOf(item);
|
61383
61784
|
var unrankedItemIndex = this.unRankingChoices.indexOf(item);
|
@@ -62632,7 +63033,9 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
62632
63033
|
};
|
62633
63034
|
QuestionRatingModel.prototype.getItemStyle = function (item, highlight) {
|
62634
63035
|
if (highlight === void 0) { highlight = "none"; }
|
62635
|
-
if (this.scaleColorMode === "monochrome" && this.rateColorMode == "default"
|
63036
|
+
if (this.scaleColorMode === "monochrome" && this.rateColorMode == "default" ||
|
63037
|
+
this.isPreviewStyle ||
|
63038
|
+
this.isReadOnlyStyle)
|
62636
63039
|
return { borderColor: null, fill: null, backgroundColor: null };
|
62637
63040
|
var index = this.visibleRateValues.indexOf(item);
|
62638
63041
|
var color = this.getRenderedItemColor(index, false);
|
@@ -62668,6 +63071,8 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
62668
63071
|
var itemClass = this.cssClasses.item;
|
62669
63072
|
var itemSelectedClass = this.cssClasses.selected;
|
62670
63073
|
var itemDisabledClass = this.cssClasses.itemDisabled;
|
63074
|
+
var itemReadOnlyClass = this.cssClasses.itemReadOnly;
|
63075
|
+
var itemPreviewClass = this.cssClasses.itemPreview;
|
62671
63076
|
var itemHoverClass = this.cssClasses.itemHover;
|
62672
63077
|
var itemitemOnErrorClass = this.cssClasses.itemOnError;
|
62673
63078
|
var itemHighlightedClass = null;
|
@@ -62679,6 +63084,8 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
62679
63084
|
itemClass = this.cssClasses.itemStar;
|
62680
63085
|
itemSelectedClass = this.cssClasses.itemStarSelected;
|
62681
63086
|
itemDisabledClass = this.cssClasses.itemStarDisabled;
|
63087
|
+
itemReadOnlyClass = this.cssClasses.itemStarReadOnly;
|
63088
|
+
itemPreviewClass = this.cssClasses.itemStarPreview;
|
62682
63089
|
itemHoverClass = this.cssClasses.itemStarHover;
|
62683
63090
|
itemitemOnErrorClass = this.cssClasses.itemStarOnError;
|
62684
63091
|
itemHighlightedClass = this.cssClasses.itemStarHighlighted;
|
@@ -62689,6 +63096,8 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
62689
63096
|
itemClass = this.cssClasses.itemSmiley;
|
62690
63097
|
itemSelectedClass = this.cssClasses.itemSmileySelected;
|
62691
63098
|
itemDisabledClass = this.cssClasses.itemSmileyDisabled;
|
63099
|
+
itemReadOnlyClass = this.cssClasses.itemSmileyReadOnly;
|
63100
|
+
itemPreviewClass = this.cssClasses.itemSmileyPreview;
|
62692
63101
|
itemHoverClass = this.cssClasses.itemSmileyHover;
|
62693
63102
|
itemitemOnErrorClass = this.cssClasses.itemSmileyOnError;
|
62694
63103
|
itemHighlightedClass = this.cssClasses.itemSmileyHighlighted;
|
@@ -62706,7 +63115,9 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
62706
63115
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_6__["CssClassBuilder"]()
|
62707
63116
|
.append(itemClass)
|
62708
63117
|
.append(itemSelectedClass, isSelected)
|
62709
|
-
.append(itemDisabledClass, this.
|
63118
|
+
.append(itemDisabledClass, this.isDisabledStyle)
|
63119
|
+
.append(itemReadOnlyClass, this.isReadOnlyStyle)
|
63120
|
+
.append(itemPreviewClass, this.isPreviewStyle)
|
62710
63121
|
.append(itemHoverClass, allowHover)
|
62711
63122
|
.append(itemHighlightedClass, isHighlighted)
|
62712
63123
|
.append(itemScaleColoredClass, this.scaleColorMode == "colored")
|
@@ -63449,6 +63860,13 @@ var QuestionSignaturePadModel = /** @class */ (function (_super) {
|
|
63449
63860
|
enumerable: false,
|
63450
63861
|
configurable: true
|
63451
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
|
+
});
|
63452
63870
|
QuestionSignaturePadModel.prototype.nothingIsDrawn = function () {
|
63453
63871
|
var isDrawing = this.isDrawingValue;
|
63454
63872
|
var isEmpty = this.isEmpty();
|
@@ -63510,6 +63928,9 @@ var QuestionSignaturePadModel = /** @class */ (function (_super) {
|
|
63510
63928
|
__decorate([
|
63511
63929
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])({ localizable: { defaultStr: "signaturePlaceHolder" } })
|
63512
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);
|
63513
63934
|
return QuestionSignaturePadModel;
|
63514
63935
|
}(_question_file__WEBPACK_IMPORTED_MODULE_5__["QuestionFileModelBase"]));
|
63515
63936
|
|
@@ -63566,6 +63987,13 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_0__["Serializer"].addClass("signaturepad",
|
|
63566
63987
|
dependsOn: "showPlaceholder",
|
63567
63988
|
visibleIf: function (obj) { return obj.showPlaceholder; }
|
63568
63989
|
},
|
63990
|
+
{
|
63991
|
+
name: "placeholderReadOnly:text",
|
63992
|
+
serializationProperty: "locPlaceholderReadOnly",
|
63993
|
+
category: "general",
|
63994
|
+
dependsOn: "showPlaceholder",
|
63995
|
+
visibleIf: function (obj) { return obj.showPlaceholder; }
|
63996
|
+
},
|
63569
63997
|
{
|
63570
63998
|
name: "backgroundImage:file",
|
63571
63999
|
category: "general",
|
@@ -63771,7 +64199,10 @@ var QuestionTagboxModel = /** @class */ (function (_super) {
|
|
63771
64199
|
.append(this.cssClasses.control)
|
63772
64200
|
.append(this.cssClasses.controlEmpty, this.isEmpty())
|
63773
64201
|
.append(this.cssClasses.onError, this.hasCssError())
|
63774
|
-
.append(this.cssClasses.
|
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)
|
63775
64206
|
.toString();
|
63776
64207
|
};
|
63777
64208
|
QuestionTagboxModel.prototype.onOpenedCallBack = function () {
|
@@ -65068,7 +65499,9 @@ var QuestionTextBase = /** @class */ (function (_super) {
|
|
65068
65499
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_3__["CssClassBuilder"]()
|
65069
65500
|
.append(this.cssClasses.root)
|
65070
65501
|
.append(this.cssClasses.onError, this.hasCssError())
|
65071
|
-
.append(this.cssClasses.controlDisabled, this.
|
65502
|
+
.append(this.cssClasses.controlDisabled, this.isDisabledStyle)
|
65503
|
+
.append(this.cssClasses.controlReadOnly, this.isReadOnlyStyle)
|
65504
|
+
.append(this.cssClasses.controlPreview, this.isPreviewStyle);
|
65072
65505
|
};
|
65073
65506
|
QuestionTextBase.prototype.getControlClass = function () {
|
65074
65507
|
return this.getControlCssClassBuilder().toString();
|
@@ -66248,7 +66681,7 @@ var SurveyFilePreview = /** @class */ (function (_super) {
|
|
66248
66681
|
var previews = this.question.previewValue.map(function (val, index) {
|
66249
66682
|
if (!val)
|
66250
66683
|
return null;
|
66251
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", { key: _this.question.inputId + "_" + index, className: _this.question.cssClasses.
|
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" } },
|
66252
66685
|
_this.renderFileSign(_this.question.cssClasses.fileSign, val),
|
66253
66686
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: _this.question.getImageWrapperCss(val) },
|
66254
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),
|
@@ -66510,7 +66943,7 @@ var ListItem = /** @class */ (function (_super) {
|
|
66510
66943
|
event.stopPropagation();
|
66511
66944
|
}, onPointerDown: function (event) { return _this.model.onPointerDown(event, _this.item); } },
|
66512
66945
|
separator,
|
66513
|
-
contentWrap));
|
66946
|
+
contentWrap), this.item);
|
66514
66947
|
};
|
66515
66948
|
ListItem.prototype.componentDidMount = function () {
|
66516
66949
|
_super.prototype.componentDidMount.call(this);
|
@@ -73749,8 +74182,8 @@ var SurveyQuestionPanelDynamic = /** @class */ (function (_super) {
|
|
73749
74182
|
SurveyQuestionPanelDynamic.prototype.renderElement = function () {
|
73750
74183
|
var panels = [];
|
73751
74184
|
if (this.question.isRenderModeList) {
|
73752
|
-
for (var i = 0; i < this.question.
|
73753
|
-
var panel = this.question.
|
74185
|
+
for (var i = 0; i < this.question.visiblePanels.length; i++) {
|
74186
|
+
var panel = this.question.visiblePanels[i];
|
73754
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 }));
|
73755
74188
|
}
|
73756
74189
|
}
|
@@ -74233,12 +74666,12 @@ var SurveyQuestionRanking = /** @class */ (function (_super) {
|
|
74233
74666
|
return items;
|
74234
74667
|
};
|
74235
74668
|
SurveyQuestionRanking.prototype.renderItem = function (item, i, handleKeydown, handlePointerDown, cssClasses, itemClass, question, unrankedItem) {
|
74236
|
-
var key =
|
74669
|
+
var key = "id-" + item.renderedId;
|
74237
74670
|
var text = this.renderLocString(item.locText);
|
74238
74671
|
var index = i;
|
74239
|
-
var indexText = this.question.getNumberByIndex(
|
74672
|
+
var indexText = this.question.getNumberByIndex(index);
|
74240
74673
|
var tabIndex = this.question.getItemTabIndex(item);
|
74241
|
-
var renderedItem = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyQuestionRankingItem, { key:
|
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 }));
|
74242
74675
|
var survey = this.question.survey;
|
74243
74676
|
var wrappedItem = null;
|
74244
74677
|
if (!!survey) {
|
@@ -74987,7 +75420,7 @@ var SurveyQuestionSignaturePad = /** @class */ (function (_super) {
|
|
74987
75420
|
var loadingIndicator = this.question.showLoadingIndicator ? this.renderLoadingIndicator() : null;
|
74988
75421
|
var clearButton = this.renderCleanButton();
|
74989
75422
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.root, ref: function (root) { return (_this.setControl(root)); }, style: { width: this.question.renderedCanvasWidth } },
|
74990
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.placeholder, style: { display: this.question.needShowPlaceholder() ? "" : "none" } }, this.renderLocString(this.question.
|
75423
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.placeholder, style: { display: this.question.needShowPlaceholder() ? "" : "none" } }, this.renderLocString(this.question.locRenderedPlaceholder)),
|
74991
75424
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", null,
|
74992
75425
|
this.renderBackgroundImage(),
|
74993
75426
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("canvas", { tabIndex: -1, className: this.question.cssClasses.canvas, onBlur: this.question.onBlur })),
|
@@ -77701,11 +78134,14 @@ var SurveyElement = /** @class */ (function (_super) {
|
|
77701
78134
|
enumerable: false,
|
77702
78135
|
configurable: true
|
77703
78136
|
});
|
78137
|
+
SurveyElement.prototype.canHaveFrameStyles = function () {
|
78138
|
+
return (this.parent !== undefined && (!this.hasParent || this.parent && this.parent.showPanelAsPage));
|
78139
|
+
};
|
77704
78140
|
SurveyElement.prototype.getHasFrameV2 = function () {
|
77705
|
-
return this.shouldAddRunnerStyles() &&
|
78141
|
+
return this.shouldAddRunnerStyles() && this.canHaveFrameStyles();
|
77706
78142
|
};
|
77707
78143
|
SurveyElement.prototype.getIsNested = function () {
|
77708
|
-
return this.shouldAddRunnerStyles() &&
|
78144
|
+
return this.shouldAddRunnerStyles() && !this.canHaveFrameStyles();
|
77709
78145
|
};
|
77710
78146
|
SurveyElement.prototype.getCssRoot = function (cssClasses) {
|
77711
78147
|
var isExpanadable = !!this.isCollapsed || !!this.isExpanded;
|
@@ -77925,9 +78361,31 @@ var SurveyElement = /** @class */ (function (_super) {
|
|
77925
78361
|
.append(cssClasses.titleExpandable, isExpandable)
|
77926
78362
|
.append(cssClasses.titleExpanded, this.isExpanded)
|
77927
78363
|
.append(cssClasses.titleCollapsed, this.isCollapsed)
|
77928
|
-
.append(cssClasses.titleDisabled, this.
|
78364
|
+
.append(cssClasses.titleDisabled, this.isDisabledStyle)
|
78365
|
+
.append(cssClasses.titleReadOnly, this.isReadOnly)
|
77929
78366
|
.append(cssClasses.titleOnError, this.containsErrors).toString();
|
77930
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
|
+
});
|
77931
78389
|
SurveyElement.prototype.localeChanged = function () {
|
77932
78390
|
_super.prototype.localeChanged.call(this);
|
77933
78391
|
this.updateDescriptionVisibility(this.description);
|
@@ -83429,7 +83887,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
83429
83887
|
});
|
83430
83888
|
SurveyModel.prototype.updateProgressText = function (onValueChanged) {
|
83431
83889
|
if (onValueChanged === void 0) { onValueChanged = false; }
|
83432
|
-
if (this.isCalculatingProgressText)
|
83890
|
+
if (this.isCalculatingProgressText || this.isShowingPreview || this.isLockingUpdateOnPageModes)
|
83433
83891
|
return;
|
83434
83892
|
if (onValueChanged &&
|
83435
83893
|
this.progressBarType == "pages" &&
|
@@ -84727,7 +85185,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
84727
85185
|
this.updateVisibleIndexes();
|
84728
85186
|
};
|
84729
85187
|
SurveyModel.prototype.updateVisibleIndexes = function () {
|
84730
|
-
if (this.isLoadingFromJson || !!this.isEndLoadingFromJson)
|
85188
|
+
if (this.isLoadingFromJson || !!this.isEndLoadingFromJson || this.isLockingUpdateOnPageModes)
|
84731
85189
|
return;
|
84732
85190
|
if (this.isRunningConditions &&
|
84733
85191
|
this.onQuestionVisibleChanged.isEmpty &&
|
@@ -85334,8 +85792,10 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
85334
85792
|
return questionClearIf;
|
85335
85793
|
return this.clearInvisibleValues;
|
85336
85794
|
};
|
85337
|
-
SurveyModel.prototype.questionVisibilityChanged = function (question, newValue) {
|
85338
|
-
|
85795
|
+
SurveyModel.prototype.questionVisibilityChanged = function (question, newValue, resetIndexes) {
|
85796
|
+
if (resetIndexes) {
|
85797
|
+
this.updateVisibleIndexes();
|
85798
|
+
}
|
85339
85799
|
this.onQuestionVisibleChanged.fire(this, {
|
85340
85800
|
question: question,
|
85341
85801
|
name: question.name,
|