survey-react 1.12.14 → 1.12.15
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 +23 -2
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +4 -2
- 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 +350 -268
- package/survey.react.js +41 -29
- 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.12.
|
2
|
+
* surveyjs - Survey JavaScript library v1.12.15
|
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
|
*/
|
@@ -1705,7 +1705,7 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
1705
1705
|
/*!********************************************!*\
|
1706
1706
|
!*** ./src/entries/react.ts + 287 modules ***!
|
1707
1707
|
\********************************************/
|
1708
|
-
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, slk, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedErrorRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionFilePage, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryFocusPage, createTOCListModel, getTocRootCss, TOCModel, SurveyProgressModel, ProgressButtons, ProgressButtonsResponsivityManager, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, SurveyTriggerSkip, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, Cover, CoverCell, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, getLocaleString, setupLocale, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, chooseFiles, sanitizeEditableContent, prepareElementForVerticalAnimation, cleanHtmlElementAfterAnimation, classesToSelector, renamedIcons, getIconNameFromProxy, InputMaskBase, InputMaskPattern, InputMaskNumeric, InputMaskDateTime, InputMaskCurrency, CssClassBuilder, TextAreaModel, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, DragDropRankingSelectToRank, StylesManager, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgThemeSets, addIconsToThemeSet, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, getElement, createDropdownActionModel, createDropdownActionModelAdvanced, createPopupModelWithListModel, getActionDropdownButtonTarget, BaseAction, Action, ActionDropdownViewModel, AnimationUtils, AnimationPropertyUtils, AnimationGroupUtils, AnimationProperty, AnimationBoolean, AnimationGroup, AnimationTab, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, DragOrClickHelper, Model, bootstrapThemeName, bootstrapThemeColors, bootstrapThemeCssRules, bootstrapMaterialThemeName, bootstrapMaterialThemeColors, bootstrapMaterialThemeCssRules, defaultBootstrapCss, defaultBootstrapMaterialCss, Survey, attachKey2click, ReactSurveyElementsWrapper, SurveyNavigationBase, SurveyTimerPanel, SurveyPage, SurveyRow, SurveyPanel, SurveyFlowPanel, SurveyQuestion, SurveyElementErrors, SurveyQuestionAndErrorsCell, ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, SurveyQuestionCommentItem, SurveyQuestionComment, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionRanking, SurveyQuestionRankingItem, SurveyQuestionRankingItemContent, RatingItem, RatingItemStar, RatingItemSmiley, RatingDropdownItem, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionMatrixCell, SurveyQuestionHtml, SurveyQuestionFile, SurveyFileChooseButton, SurveyFilePreview, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, ListItemContent, ListItemGroup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, QuestionErrorComponent, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, HeaderMobile, HeaderCell, Header, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent, SvgBundleComponent, PopupModal */
|
1708
|
+
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, slk, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedErrorRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionFilePage, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryFocusPage, createTOCListModel, getTocRootCss, TOCModel, SurveyProgressModel, ProgressButtons, ProgressButtonsResponsivityManager, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, SurveyTriggerSkip, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, Cover, CoverCell, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, getLocaleString, setupLocale, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, chooseFiles, sanitizeEditableContent, prepareElementForVerticalAnimation, cleanHtmlElementAfterAnimation, classesToSelector, renamedIcons, getIconNameFromProxy, InputMaskBase, InputMaskPattern, InputMaskNumeric, InputMaskDateTime, InputMaskCurrency, CssClassBuilder, TextAreaModel, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, DragDropRankingSelectToRank, StylesManager, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgThemeSets, addIconsToThemeSet, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, getElement, activateLazyRenderingChecks, createDropdownActionModel, createDropdownActionModelAdvanced, createPopupModelWithListModel, getActionDropdownButtonTarget, BaseAction, Action, ActionDropdownViewModel, AnimationUtils, AnimationPropertyUtils, AnimationGroupUtils, AnimationProperty, AnimationBoolean, AnimationGroup, AnimationTab, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, DragOrClickHelper, Model, bootstrapThemeName, bootstrapThemeColors, bootstrapThemeCssRules, bootstrapMaterialThemeName, bootstrapMaterialThemeColors, bootstrapMaterialThemeCssRules, defaultBootstrapCss, defaultBootstrapMaterialCss, Survey, attachKey2click, ReactSurveyElementsWrapper, SurveyNavigationBase, SurveyTimerPanel, SurveyPage, SurveyRow, SurveyPanel, SurveyFlowPanel, SurveyQuestion, SurveyElementErrors, SurveyQuestionAndErrorsCell, ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, SurveyQuestionCommentItem, SurveyQuestionComment, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionRanking, SurveyQuestionRankingItem, SurveyQuestionRankingItemContent, RatingItem, RatingItemStar, RatingItemSmiley, RatingDropdownItem, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionMatrixCell, SurveyQuestionHtml, SurveyQuestionFile, SurveyFileChooseButton, SurveyFilePreview, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, ListItemContent, ListItemGroup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, QuestionErrorComponent, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, HeaderMobile, HeaderCell, Header, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent, SvgBundleComponent, PopupModal */
|
1709
1709
|
/*! ModuleConcatenation bailout: Cannot concat with external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"} (<- Module is not an ECMAScript module) */
|
1710
1710
|
/*! ModuleConcatenation bailout: Cannot concat with external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"} (<- Module is not an ECMAScript module) */
|
1711
1711
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -1935,6 +1935,7 @@ __webpack_require__.d(__webpack_exports__, "VerticalResponsivityManager", functi
|
|
1935
1935
|
__webpack_require__.d(__webpack_exports__, "unwrap", function() { return /* reexport */ unwrap; });
|
1936
1936
|
__webpack_require__.d(__webpack_exports__, "getOriginalEvent", function() { return /* reexport */ getOriginalEvent; });
|
1937
1937
|
__webpack_require__.d(__webpack_exports__, "getElement", function() { return /* reexport */ getElement; });
|
1938
|
+
__webpack_require__.d(__webpack_exports__, "activateLazyRenderingChecks", function() { return /* reexport */ activateLazyRenderingChecks; });
|
1938
1939
|
__webpack_require__.d(__webpack_exports__, "createDropdownActionModel", function() { return /* reexport */ createDropdownActionModel; });
|
1939
1940
|
__webpack_require__.d(__webpack_exports__, "createDropdownActionModelAdvanced", function() { return /* reexport */ createDropdownActionModelAdvanced; });
|
1940
1941
|
__webpack_require__.d(__webpack_exports__, "createPopupModelWithListModel", function() { return /* reexport */ createPopupModelWithListModel; });
|
@@ -2855,12 +2856,13 @@ var surveyLocalization = {
|
|
2855
2856
|
//TODO remove on next week
|
2856
2857
|
get showNamesInEnglish() { return this.useEnglishNames; },
|
2857
2858
|
set showNamesInEnglish(val) { this.useEnglishNames = val; },
|
2858
|
-
setupLocale: function (
|
2859
|
-
|
2860
|
-
this.
|
2861
|
-
this.
|
2862
|
-
|
2863
|
-
|
2859
|
+
setupLocale: function (localeConfig) {
|
2860
|
+
var loc = localeConfig.localeCode;
|
2861
|
+
this.locales[loc] = localeConfig.strings;
|
2862
|
+
this.localeNames[loc] = localeConfig.nativeName;
|
2863
|
+
this.localeNamesInEnglish[loc] = localeConfig.englishName;
|
2864
|
+
if (localeConfig.rtl !== undefined) {
|
2865
|
+
this.localeDirections[loc] = localeConfig.rtl;
|
2864
2866
|
}
|
2865
2867
|
},
|
2866
2868
|
get currentLocale() {
|
@@ -2959,7 +2961,7 @@ function getLocaleString(strName, locale) {
|
|
2959
2961
|
return surveyLocalization.getString(strName, locale);
|
2960
2962
|
}
|
2961
2963
|
function setupLocale(localeConfig) {
|
2962
|
-
surveyLocalization.setupLocale(localeConfig
|
2964
|
+
surveyLocalization.setupLocale(localeConfig);
|
2963
2965
|
}
|
2964
2966
|
var surveyStrings = englishStrings;
|
2965
2967
|
surveyLocalization.locales["en"] = englishStrings;
|
@@ -11781,9 +11783,15 @@ var list_ListModel = /** @class */ (function (_super) {
|
|
11781
11783
|
.append(itemValue.css)
|
11782
11784
|
.toString();
|
11783
11785
|
};
|
11784
|
-
|
11786
|
+
// public getItemIndent = (itemValue: any) => {
|
11787
|
+
// const level: number = itemValue.level || 0;
|
11788
|
+
// return (level + 1) * ListModel.INDENT + "px";
|
11789
|
+
// };
|
11790
|
+
_this.getItemStyle = function (itemValue) {
|
11785
11791
|
var level = itemValue.level || 0;
|
11786
|
-
return
|
11792
|
+
return {
|
11793
|
+
"--sjs-list-item-level": level + 1
|
11794
|
+
};
|
11787
11795
|
};
|
11788
11796
|
if (Object.keys(items).indexOf("items") !== -1) {
|
11789
11797
|
var options_1 = items;
|
@@ -12699,13 +12707,14 @@ var action_BaseAction = /** @class */ (function (_super) {
|
|
12699
12707
|
|
12700
12708
|
var action_Action = /** @class */ (function (_super) {
|
12701
12709
|
action_extends(Action, _super);
|
12702
|
-
function Action(
|
12710
|
+
function Action(innerItemData) {
|
12703
12711
|
var _this = _super.call(this) || this;
|
12704
|
-
_this.innerItem = innerItem;
|
12705
12712
|
_this.locTitleChanged = function () {
|
12706
12713
|
var val = _this.locTitle.renderedHtml;
|
12707
12714
|
_this.setPropertyValue("_title", !!val ? val : undefined);
|
12708
12715
|
};
|
12716
|
+
var innerItem = (innerItemData instanceof Action) ? innerItemData.innerItem : innerItemData;
|
12717
|
+
_this.innerItem = innerItem;
|
12709
12718
|
_this.locTitle = !!innerItem ? innerItem["locTitle"] : null;
|
12710
12719
|
//Object.assign(this, item) to support IE11
|
12711
12720
|
if (!!innerItem) {
|
@@ -31424,10 +31433,9 @@ var question_matrixdropdownbase_QuestionMatrixDropdownModelBase = /** @class */
|
|
31424
31433
|
if (isDeletingValue) {
|
31425
31434
|
delete rowValue[columnName];
|
31426
31435
|
}
|
31427
|
-
|
31428
|
-
|
31429
|
-
|
31430
|
-
}
|
31436
|
+
row.questions.forEach(function (q) {
|
31437
|
+
delete rowValue[q.getValueName()];
|
31438
|
+
});
|
31431
31439
|
if (newRowValue) {
|
31432
31440
|
newRowValue = JSON.parse(JSON.stringify(newRowValue));
|
31433
31441
|
for (var key in newRowValue) {
|
@@ -45565,7 +45573,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
45565
45573
|
width: width,
|
45566
45574
|
};
|
45567
45575
|
this.onResize.fire(this, options);
|
45568
|
-
this.setResponsiveStartWidth(width);
|
45576
|
+
// this.setResponsiveStartWidth(width);
|
45569
45577
|
return isMobileChanged;
|
45570
45578
|
};
|
45571
45579
|
SurveyModel.prototype.triggerResponsiveness = function (hard) {
|
@@ -47884,6 +47892,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
47884
47892
|
if (this.isScaled && this.responsiveStartWidth > 1) {
|
47885
47893
|
var initialWidth = this.responsiveStartWidth;
|
47886
47894
|
try {
|
47895
|
+
width = width || this.staticStartWidth;
|
47887
47896
|
initialWidth = !isNaN(width) ? width : parseFloat(width.toString().replace("px", ""));
|
47888
47897
|
}
|
47889
47898
|
catch (e) { }
|
@@ -47896,6 +47905,9 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
47896
47905
|
enumerable: false,
|
47897
47906
|
configurable: true
|
47898
47907
|
});
|
47908
|
+
SurveyModel.prototype.setStaticStartWidth = function (width) {
|
47909
|
+
this.staticStartWidth = width;
|
47910
|
+
};
|
47899
47911
|
SurveyModel.prototype.setResponsiveStartWidth = function (width) {
|
47900
47912
|
this.responsiveStartWidth = width;
|
47901
47913
|
};
|
@@ -48734,6 +48746,9 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
48734
48746
|
survey_decorate([
|
48735
48747
|
jsonobject_property({ defaultValue: 100 })
|
48736
48748
|
], SurveyModel.prototype, "widthScale", void 0);
|
48749
|
+
survey_decorate([
|
48750
|
+
jsonobject_property()
|
48751
|
+
], SurveyModel.prototype, "staticStartWidth", void 0);
|
48737
48752
|
survey_decorate([
|
48738
48753
|
jsonobject_property()
|
48739
48754
|
], SurveyModel.prototype, "responsiveStartWidth", void 0);
|
@@ -61309,7 +61324,7 @@ var question_file_QuestionFileModel = /** @class */ (function (_super) {
|
|
61309
61324
|
if (this.previewValue.length > 0 && !this.calculatedGapBetweenItems && !this.calculatedItemWidth) {
|
61310
61325
|
setTimeout(function () {
|
61311
61326
|
_this.processResponsiveness(0, _this._width);
|
61312
|
-
});
|
61327
|
+
}, 1);
|
61313
61328
|
}
|
61314
61329
|
this.prevPreviewLength = this.previewValue.length;
|
61315
61330
|
};
|
@@ -72144,8 +72159,8 @@ Serializer.addClass("currencymask", [
|
|
72144
72159
|
|
72145
72160
|
var Version;
|
72146
72161
|
var ReleaseDate;
|
72147
|
-
Version = "" + "1.12.
|
72148
|
-
ReleaseDate = "" + "2024-12-
|
72162
|
+
Version = "" + "1.12.15";
|
72163
|
+
ReleaseDate = "" + "2024-12-16";
|
72149
72164
|
function checkLibraryVersion(ver, libraryName) {
|
72150
72165
|
if (Version != ver) {
|
72151
72166
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|
@@ -83391,7 +83406,7 @@ var action_bar_SurveyActionBar = /** @class */ (function (_super) {
|
|
83391
83406
|
return;
|
83392
83407
|
var container = this.rootRef.current;
|
83393
83408
|
if (!!container) {
|
83394
|
-
this.model.initResponsivityManager(container, function (callback) { setTimeout(callback); });
|
83409
|
+
this.model.initResponsivityManager(container, function (callback) { setTimeout(callback, 100); });
|
83395
83410
|
}
|
83396
83411
|
};
|
83397
83412
|
SurveyActionBar.prototype.componentWillUnmount = function () {
|
@@ -83406,7 +83421,7 @@ var action_bar_SurveyActionBar = /** @class */ (function (_super) {
|
|
83406
83421
|
if (!!this.model.hasActions) {
|
83407
83422
|
var container = this.rootRef.current;
|
83408
83423
|
if (!!container) {
|
83409
|
-
this.model.initResponsivityManager(container, function (callback) { setTimeout(callback); });
|
83424
|
+
this.model.initResponsivityManager(container, function (callback) { setTimeout(callback, 100); });
|
83410
83425
|
}
|
83411
83426
|
}
|
83412
83427
|
};
|
@@ -89460,13 +89475,10 @@ var list_item_ListItem = /** @class */ (function (_super) {
|
|
89460
89475
|
var _this = this;
|
89461
89476
|
if (!this.item)
|
89462
89477
|
return null;
|
89463
|
-
var contentWrapStyle = {
|
89464
|
-
paddingInlineStart: this.model.getItemIndent(this.item)
|
89465
|
-
};
|
89466
89478
|
var className = this.model.getItemClass(this.item);
|
89467
89479
|
var itemContent = this.item.component || this.model.itemComponent;
|
89468
89480
|
var newElement = ReactElementFactory.Instance.createElement(itemContent, { item: this.item, key: this.item.id, model: this.model });
|
89469
|
-
var contentWrap = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", { style:
|
89481
|
+
var contentWrap = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", { style: this.model.getItemStyle(this.item), className: this.model.cssClasses.itemBody, title: this.item.locTitle.calculatedText, onMouseOver: function (event) { _this.model.onItemHover(_this.item); }, onMouseLeave: function (event) { _this.model.onItemLeave(_this.item); } }, newElement);
|
89470
89482
|
var separator = this.item.needSeparator ? external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", { className: this.model.cssClasses.itemSeparator }) : null;
|
89471
89483
|
var isVisible = this.model.isItemVisible(this.item);
|
89472
89484
|
var style = {
|
@@ -90210,7 +90222,7 @@ var image_SurveyQuestionImage = /** @class */ (function (_super) {
|
|
90210
90222
|
}
|
90211
90223
|
var control = null;
|
90212
90224
|
if (this.question.renderedMode === "image") {
|
90213
|
-
control = (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("img", { className: cssClasses, src: this.question.locImageLink.renderedHtml, alt: this.question.altText || this.question.title, width: this.question.renderedWidth, height: this.question.renderedHeight,
|
90225
|
+
control = (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("img", { className: cssClasses, src: this.question.locImageLink.renderedHtml || null, alt: this.question.altText || this.question.title, width: this.question.renderedWidth, height: this.question.renderedHeight,
|
90214
90226
|
//alt={item.text || item.value}
|
90215
90227
|
style: style, onLoad: function (event) { _this.question.onLoadHandler(); }, onError: function (event) { _this.question.onErrorHandler(); } }));
|
90216
90228
|
}
|
@@ -90641,7 +90653,7 @@ var logo_image_LogoImage = /** @class */ (function (_super) {
|
|
90641
90653
|
LogoImage.prototype.render = function () {
|
90642
90654
|
var content = [];
|
90643
90655
|
content.push(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", { key: "logo-image", className: this.survey.logoClassNames },
|
90644
|
-
external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("img", { className: this.survey.css.logoImage, src: this.survey.locLogo.renderedHtml, alt: this.survey.locTitle.renderedHtml, width: this.survey.renderedLogoWidth, height: this.survey.renderedLogoHeight, style: { objectFit: this.survey.logoFit, width: this.survey.renderedStyleLogoWidth, height: this.survey.renderedStyleLogoHeight } })));
|
90656
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("img", { className: this.survey.css.logoImage, src: this.survey.locLogo.renderedHtml || null, alt: this.survey.locTitle.renderedHtml, width: this.survey.renderedLogoWidth, height: this.survey.renderedLogoHeight, style: { objectFit: this.survey.logoFit, width: this.survey.renderedStyleLogoWidth, height: this.survey.renderedStyleLogoHeight } })));
|
90645
90657
|
return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Fragment, null, content);
|
90646
90658
|
};
|
90647
90659
|
return LogoImage;
|