survey-react 1.12.10 → 1.12.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/survey.react.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.10
2
+ * surveyjs - Survey JavaScript library v1.12.12
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
  */
@@ -110,7 +110,6 @@ return /******/ (function(modules) { // webpackBootstrap
110
110
  /***/ (function(module, exports, __webpack_require__) {
111
111
 
112
112
  var map = {
113
- "./ChooseFile.svg": "./packages/survey-core/src/images-v1/ChooseFile.svg",
114
113
  "./ModernBooleanCheckChecked.svg": "./packages/survey-core/src/images-v1/ModernBooleanCheckChecked.svg",
115
114
  "./ModernBooleanCheckInd.svg": "./packages/survey-core/src/images-v1/ModernBooleanCheckInd.svg",
116
115
  "./ModernBooleanCheckUnchecked.svg": "./packages/survey-core/src/images-v1/ModernBooleanCheckUnchecked.svg",
@@ -194,18 +193,6 @@ webpackContext.id = "./packages/survey-core/src/images-v1 sync recursive \\.svg$
194
193
 
195
194
  /***/ }),
196
195
 
197
- /***/ "./packages/survey-core/src/images-v1/ChooseFile.svg":
198
- /*!***********************************************************!*\
199
- !*** ./packages/survey-core/src/images-v1/ChooseFile.svg ***!
200
- \***********************************************************/
201
- /*! no static exports found */
202
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
203
- /***/ (function(module, exports) {
204
-
205
- module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M22 9V7C22 5.9 21.1 5 20 5H12L10 3H4C2.9 3 2 3.9 2 5V9V10V21H22L24 9H22ZM4 5H9.2L10.6 6.4L11.2 7H12H20V9H4V5ZM20.3 19H4V11H21.6L20.3 19Z\"></path></svg>"
206
-
207
- /***/ }),
208
-
209
196
  /***/ "./packages/survey-core/src/images-v1/ModernBooleanCheckChecked.svg":
210
197
  /*!**************************************************************************!*\
211
198
  !*** ./packages/survey-core/src/images-v1/ModernBooleanCheckChecked.svg ***!
@@ -923,7 +910,6 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
923
910
  /***/ (function(module, exports, __webpack_require__) {
924
911
 
925
912
  var map = {
926
- "./ChooseFile.svg": "./packages/survey-core/src/images-v2/ChooseFile.svg",
927
913
  "./ModernBooleanCheckChecked.svg": "./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg",
928
914
  "./ModernBooleanCheckInd.svg": "./packages/survey-core/src/images-v2/ModernBooleanCheckInd.svg",
929
915
  "./ModernBooleanCheckUnchecked.svg": "./packages/survey-core/src/images-v2/ModernBooleanCheckUnchecked.svg",
@@ -1007,18 +993,6 @@ webpackContext.id = "./packages/survey-core/src/images-v2 sync recursive \\.svg$
1007
993
 
1008
994
  /***/ }),
1009
995
 
1010
- /***/ "./packages/survey-core/src/images-v2/ChooseFile.svg":
1011
- /*!***********************************************************!*\
1012
- !*** ./packages/survey-core/src/images-v2/ChooseFile.svg ***!
1013
- \***********************************************************/
1014
- /*! no static exports found */
1015
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
1016
- /***/ (function(module, exports) {
1017
-
1018
- module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M22 9V7C22 5.9 21.1 5 20 5H12L10 3H4C2.9 3 2 3.9 2 5V9V10V21H22L24 9H22ZM4 5H9.2L10.6 6.4L11.2 7H12H20V9H4V5ZM20.3 19H4V11H21.6L20.3 19Z\"></path></svg>"
1019
-
1020
- /***/ }),
1021
-
1022
996
  /***/ "./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg":
1023
997
  /*!**************************************************************************!*\
1024
998
  !*** ./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg ***!
@@ -1729,9 +1703,9 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
1729
1703
 
1730
1704
  /***/ "./src/entries/react.ts":
1731
1705
  /*!********************************************!*\
1732
- !*** ./src/entries/react.ts + 285 modules ***!
1706
+ !*** ./src/entries/react.ts + 287 modules ***!
1733
1707
  \********************************************/
1734
- /*! 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, 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, SvgBundleViewModel, svgBundle, 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, 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 */
1735
1709
  /*! ModuleConcatenation bailout: Cannot concat with external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"} (<- Module is not an ECMAScript module) */
1736
1710
  /*! ModuleConcatenation bailout: Cannot concat with external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"} (<- Module is not an ECMAScript module) */
1737
1711
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
@@ -1894,6 +1868,8 @@ __webpack_require__.d(__webpack_exports__, "dxSurveyService", function() { retur
1894
1868
  __webpack_require__.d(__webpack_exports__, "englishStrings", function() { return /* reexport */ englishStrings; });
1895
1869
  __webpack_require__.d(__webpack_exports__, "surveyLocalization", function() { return /* reexport */ surveyLocalization; });
1896
1870
  __webpack_require__.d(__webpack_exports__, "surveyStrings", function() { return /* reexport */ surveyStrings; });
1871
+ __webpack_require__.d(__webpack_exports__, "getLocaleString", function() { return /* reexport */ getLocaleString; });
1872
+ __webpack_require__.d(__webpack_exports__, "setupLocale", function() { return /* reexport */ setupLocale; });
1897
1873
  __webpack_require__.d(__webpack_exports__, "QuestionCustomWidget", function() { return /* reexport */ QuestionCustomWidget; });
1898
1874
  __webpack_require__.d(__webpack_exports__, "CustomWidgetCollection", function() { return /* reexport */ questionCustomWidgets_CustomWidgetCollection; });
1899
1875
  __webpack_require__.d(__webpack_exports__, "QuestionCustomModel", function() { return /* reexport */ question_custom_QuestionCustomModel; });
@@ -1951,8 +1927,8 @@ __webpack_require__.d(__webpack_exports__, "defaultStandardCss", function() { re
1951
1927
  __webpack_require__.d(__webpack_exports__, "modernCss", function() { return /* reexport */ modernCss; });
1952
1928
  __webpack_require__.d(__webpack_exports__, "SvgIconRegistry", function() { return /* reexport */ svgbundle_SvgIconRegistry; });
1953
1929
  __webpack_require__.d(__webpack_exports__, "SvgRegistry", function() { return /* reexport */ SvgRegistry; });
1954
- __webpack_require__.d(__webpack_exports__, "SvgBundleViewModel", function() { return /* reexport */ SvgBundleViewModel; });
1955
- __webpack_require__.d(__webpack_exports__, "svgBundle", function() { return /* reexport */ svgBundle; });
1930
+ __webpack_require__.d(__webpack_exports__, "SvgThemeSets", function() { return /* reexport */ SvgThemeSets; });
1931
+ __webpack_require__.d(__webpack_exports__, "addIconsToThemeSet", function() { return /* reexport */ addIconsToThemeSet; });
1956
1932
  __webpack_require__.d(__webpack_exports__, "RendererFactory", function() { return /* reexport */ RendererFactory; });
1957
1933
  __webpack_require__.d(__webpack_exports__, "ResponsivityManager", function() { return /* reexport */ responsivity_manager_ResponsivityManager; });
1958
1934
  __webpack_require__.d(__webpack_exports__, "VerticalResponsivityManager", function() { return /* reexport */ VerticalResponsivityManager; });
@@ -2226,6 +2202,22 @@ var DomDocumentHelper = /** @class */ (function () {
2226
2202
 
2227
2203
  // CONCATENATED MODULE: ./packages/survey-core/src/helpers.ts
2228
2204
 
2205
+ function createDate(reason, val) {
2206
+ if (!val)
2207
+ return new Date();
2208
+ if (!settings.storeUtcDates && typeof val === "string" && isISODateOnly(val)) {
2209
+ val += "T00:00:00";
2210
+ }
2211
+ var d = new Date(val);
2212
+ return settings.onDateCreated(d, reason, val);
2213
+ }
2214
+ function isISODateOnly(str) {
2215
+ if (str.indexOf("T") > 0)
2216
+ return false;
2217
+ if (!/\d{4}-\d{2}-\d{2}/.test(str))
2218
+ return false;
2219
+ return !isNaN(new Date(str).getTime());
2220
+ }
2229
2221
  var helpers_Helpers = /** @class */ (function () {
2230
2222
  function Helpers() {
2231
2223
  }
@@ -2722,7 +2714,7 @@ if (!String.prototype["format"]) {
2722
2714
 
2723
2715
  // CONCATENATED MODULE: ./packages/survey-core/src/localization/english.ts
2724
2716
  // Uncomment the line below if you create a custom dictionary
2725
- // import { surveyLocalization } from "survey-core";
2717
+ // import { setupLocale } from "survey-core";
2726
2718
  var englishStrings = {
2727
2719
  pagePrevText: "Previous",
2728
2720
  pageNextText: "Next",
@@ -2835,7 +2827,7 @@ var englishStrings = {
2835
2827
  // Uncomment the lines below if you create a custom dictionary.
2836
2828
  // Replace "en" with a custom locale code (for example, "fr" or "de"),
2837
2829
  // Replace `englishStrings` with the name of the variable that contains the custom dictionary.
2838
- //surveyLocalization.setupLocale("en", englishStrings, "English", "English");
2830
+ //setupLocale({ localeCode: "en", strings: englishStrings, nativeName: "English", englishName: "English" });
2839
2831
 
2840
2832
  // CONCATENATED MODULE: ./packages/survey-core/src/surveyStrings.ts
2841
2833
 
@@ -2950,6 +2942,13 @@ var surveyLocalization = {
2950
2942
  },
2951
2943
  onGetExternalString: function (name, locale) { return undefined; }
2952
2944
  };
2945
+ function getLocaleString(strName, locale) {
2946
+ if (locale === void 0) { locale = null; }
2947
+ return surveyLocalization.getString(strName, locale);
2948
+ }
2949
+ function setupLocale(localeConfig) {
2950
+ surveyLocalization.setupLocale(localeConfig.localeCode, localeConfig.strings, localeConfig.nativeName, localeConfig.englishName, localeConfig.rtl ? "rtl" : undefined);
2951
+ }
2953
2952
  var surveyStrings = englishStrings;
2954
2953
  surveyLocalization.locales["en"] = englishStrings;
2955
2954
  surveyLocalization.localeNames["en"] = "english";
@@ -2999,7 +2998,7 @@ function getLocStringValue(target, options, key) {
2999
2998
  return res;
3000
2999
  if (typeof options.localizable === "object" && options.localizable.defaultStr) {
3001
3000
  var loc = !!target.getLocale ? target.getLocale() : "";
3002
- return surveyLocalization.getString(options.localizable.defaultStr, loc);
3001
+ return getLocaleString(options.localizable.defaultStr, loc);
3003
3002
  }
3004
3003
  return "";
3005
3004
  }
@@ -4466,10 +4465,12 @@ var JsonMetadata = /** @class */ (function () {
4466
4465
  };
4467
4466
  JsonMetadata.prototype.generateSchemaProperty = function (prop, schemaDef, isRoot) {
4468
4467
  if (prop.isLocalizable) {
4469
- return { oneOf: [
4468
+ return {
4469
+ oneOf: [
4470
4470
  { "type": "string" },
4471
4471
  { "$ref": this.getChemeRefName("locstring", isRoot) }
4472
- ] };
4472
+ ]
4473
+ };
4473
4474
  }
4474
4475
  var propType = prop.schemaType();
4475
4476
  var refType = prop.schemaRef();
@@ -5552,14 +5553,14 @@ function getDate(params) {
5552
5553
  return null;
5553
5554
  if (!params[0])
5554
5555
  return null;
5555
- return new Date(params[0]);
5556
+ return createDate("function-getDate", params[0]);
5556
5557
  }
5557
5558
  functionsfactory_FunctionFactory.Instance.register("getDate", getDate);
5558
5559
  function dateDiffMonths(date1Param, date2Param, type) {
5559
5560
  if (type === "days")
5560
5561
  return diffDays([date1Param, date2Param]);
5561
- var date1 = !!date1Param ? new Date(date1Param) : new Date();
5562
- var date2 = !!date2Param ? new Date(date2Param) : new Date();
5562
+ var date1 = createDate("function-dateDiffMonths", date1Param);
5563
+ var date2 = createDate("function-dateDiffMonths", date2Param);
5563
5564
  var age = date2.getFullYear() - date1.getFullYear();
5564
5565
  type = type || "years";
5565
5566
  var ageInMonths = age * 12 + date2.getMonth() - date1.getMonth();
@@ -5568,12 +5569,12 @@ function dateDiffMonths(date1Param, date2Param, type) {
5568
5569
  }
5569
5570
  return type === "months" ? ageInMonths : ~~(ageInMonths / 12);
5570
5571
  }
5571
- function age(params) {
5572
+ function functionsfactory_age(params) {
5572
5573
  if (!Array.isArray(params) || params.length < 1 || !params[0])
5573
5574
  return null;
5574
5575
  return dateDiffMonths(params[0], undefined, (params.length > 1 ? params[1] : "") || "years");
5575
5576
  }
5576
- functionsfactory_FunctionFactory.Instance.register("age", age);
5577
+ functionsfactory_FunctionFactory.Instance.register("age", functionsfactory_age);
5577
5578
  function dateDiff(params) {
5578
5579
  if (!Array.isArray(params) || params.length < 2 || !params[0] || !params[1])
5579
5580
  return null;
@@ -5624,11 +5625,11 @@ function isDisplayMode() {
5624
5625
  }
5625
5626
  functionsfactory_FunctionFactory.Instance.register("isDisplayMode", isDisplayMode);
5626
5627
  function currentDate() {
5627
- return new Date();
5628
+ return createDate("function-currentDate");
5628
5629
  }
5629
5630
  functionsfactory_FunctionFactory.Instance.register("currentDate", currentDate);
5630
5631
  function today(params) {
5631
- var res = new Date();
5632
+ var res = createDate("function-today");
5632
5633
  if (settings.localization.useLocalTimeZone) {
5633
5634
  res.setHours(0, 0, 0, 0);
5634
5635
  }
@@ -5644,11 +5645,11 @@ functionsfactory_FunctionFactory.Instance.register("today", today);
5644
5645
  function getYear(params) {
5645
5646
  if (params.length !== 1 || !params[0])
5646
5647
  return undefined;
5647
- return new Date(params[0]).getFullYear();
5648
+ return createDate("function-getYear", params[0]).getFullYear();
5648
5649
  }
5649
5650
  functionsfactory_FunctionFactory.Instance.register("getYear", getYear);
5650
5651
  function currentYear() {
5651
- return new Date().getFullYear();
5652
+ return createDate("function-currentYear").getFullYear();
5652
5653
  }
5653
5654
  functionsfactory_FunctionFactory.Instance.register("currentYear", currentYear);
5654
5655
  function diffDays(params) {
@@ -5656,36 +5657,36 @@ function diffDays(params) {
5656
5657
  return 0;
5657
5658
  if (!params[0] || !params[1])
5658
5659
  return 0;
5659
- var date1 = new Date(params[0]);
5660
- var date2 = new Date(params[1]);
5660
+ var date1 = createDate("function-diffDays", params[0]);
5661
+ var date2 = createDate("function-diffDays", params[1]);
5661
5662
  var diffTime = Math.abs(date2 - date1);
5662
5663
  return Math.ceil(diffTime / (1000 * 60 * 60 * 24));
5663
5664
  }
5664
5665
  functionsfactory_FunctionFactory.Instance.register("diffDays", diffDays);
5665
- function dateFromFirstParameterOrToday(params) {
5666
+ function dateFromFirstParameterOrToday(name, params) {
5666
5667
  var date = today(undefined);
5667
5668
  if (params && params[0]) {
5668
- date = new Date(params[0]);
5669
+ date = createDate("function-" + name, params[0]);
5669
5670
  }
5670
5671
  return date;
5671
5672
  }
5672
5673
  function functionsfactory_year(params) {
5673
- var date = dateFromFirstParameterOrToday(params);
5674
+ var date = dateFromFirstParameterOrToday("year", params);
5674
5675
  return date.getFullYear();
5675
5676
  }
5676
5677
  functionsfactory_FunctionFactory.Instance.register("year", functionsfactory_year);
5677
5678
  function functionsfactory_month(params) {
5678
- var date = dateFromFirstParameterOrToday(params);
5679
+ var date = dateFromFirstParameterOrToday("month", params);
5679
5680
  return date.getMonth() + 1;
5680
5681
  }
5681
5682
  functionsfactory_FunctionFactory.Instance.register("month", functionsfactory_month);
5682
5683
  function day(params) {
5683
- var date = dateFromFirstParameterOrToday(params);
5684
+ var date = dateFromFirstParameterOrToday("day", params);
5684
5685
  return date.getDate();
5685
5686
  }
5686
5687
  functionsfactory_FunctionFactory.Instance.register("day", day);
5687
5688
  function weekday(params) {
5688
- var date = dateFromFirstParameterOrToday(params);
5689
+ var date = dateFromFirstParameterOrToday("weekday", params);
5689
5690
  return date.getDay();
5690
5691
  }
5691
5692
  functionsfactory_FunctionFactory.Instance.register("weekday", weekday);
@@ -6323,7 +6324,7 @@ var expressions_OperandMaker = /** @class */ (function () {
6323
6324
  };
6324
6325
  OperandMaker.convertValForDateCompare = function (val, second) {
6325
6326
  if (second instanceof Date && typeof val === "string") {
6326
- var res = new Date(val);
6327
+ var res = createDate("expression-operand", val);
6327
6328
  res.setHours(0, 0, 0);
6328
6329
  return res;
6329
6330
  }
@@ -10707,7 +10708,7 @@ var base_Base = /** @class */ (function () {
10707
10708
  return !!locOwner ? locOwner.getLocale() : "";
10708
10709
  };
10709
10710
  Base.prototype.getLocalizationString = function (strName) {
10710
- return surveyLocalization.getString(strName, this.getLocale());
10711
+ return getLocaleString(strName, this.getLocale());
10711
10712
  };
10712
10713
  Base.prototype.getLocalizationFormatString = function (strName) {
10713
10714
  var args = [];
@@ -11505,25 +11506,46 @@ var container_ActionContainer = /** @class */ (function (_super) {
11505
11506
  ActionContainer.prototype.addAction = function (val, sortByVisibleIndex) {
11506
11507
  if (sortByVisibleIndex === void 0) { sortByVisibleIndex = true; }
11507
11508
  var res = this.createAction(val);
11508
- this.actions.push(res);
11509
- this.sortItems();
11509
+ if (sortByVisibleIndex && !this.isActionVisible(res))
11510
+ return res;
11511
+ var items = [].concat(this.actions, res);
11512
+ this.sortItems(items);
11513
+ this.actions = items;
11510
11514
  return res;
11511
11515
  };
11512
- ActionContainer.prototype.sortItems = function () {
11513
- this.actions = []
11514
- .concat(this.actions.filter(function (item) { return item.visibleIndex === undefined || item.visibleIndex >= 0; }))
11515
- .sort(function (firstItem, secondItem) {
11516
- return firstItem.visibleIndex - secondItem.visibleIndex;
11517
- });
11518
- };
11519
11516
  ActionContainer.prototype.setItems = function (items, sortByVisibleIndex) {
11520
11517
  var _this = this;
11521
11518
  if (sortByVisibleIndex === void 0) { sortByVisibleIndex = true; }
11522
- this.actions = items.map(function (item) { return _this.createAction(item); });
11519
+ var newActions = [];
11520
+ items.forEach(function (item) {
11521
+ if (!sortByVisibleIndex || _this.isActionVisible(item)) {
11522
+ newActions.push(_this.createAction(item));
11523
+ }
11524
+ });
11523
11525
  if (sortByVisibleIndex) {
11524
- this.sortItems();
11526
+ this.sortItems(newActions);
11527
+ }
11528
+ this.actions = newActions;
11529
+ };
11530
+ ActionContainer.prototype.sortItems = function (items) {
11531
+ if (this.hasSetVisibleIndex(items)) {
11532
+ items.sort(this.compareByVisibleIndex);
11525
11533
  }
11526
11534
  };
11535
+ ActionContainer.prototype.hasSetVisibleIndex = function (items) {
11536
+ for (var i = 0; i < items.length; i++) {
11537
+ var index = items[i].visibleIndex;
11538
+ if (index !== undefined && index >= 0)
11539
+ return true;
11540
+ }
11541
+ return false;
11542
+ };
11543
+ ActionContainer.prototype.compareByVisibleIndex = function (first, second) {
11544
+ return first.visibleIndex - second.visibleIndex;
11545
+ };
11546
+ ActionContainer.prototype.isActionVisible = function (item) {
11547
+ return item.visibleIndex >= 0 || item.visibleIndex === undefined;
11548
+ };
11527
11549
  ActionContainer.prototype.popupAfterShowCallback = function (itemValue) {
11528
11550
  };
11529
11551
  ActionContainer.prototype.mouseOverHandler = function (itemValue) {
@@ -11851,6 +11873,10 @@ var list_ListModel = /** @class */ (function (_super) {
11851
11873
  this.actions.push(this.loadingIndicator);
11852
11874
  }
11853
11875
  };
11876
+ ListModel.prototype.setSearchEnabled = function (newValue) {
11877
+ this.searchEnabled = newValue;
11878
+ this.showSearchClearButton = newValue;
11879
+ };
11854
11880
  ListModel.prototype.onSet = function () {
11855
11881
  this.showFilter = this.searchEnabled && (this.forceShowFilter || (this.actions || []).length > ListModel.MINELEMENTCOUNT);
11856
11882
  _super.prototype.onSet.call(this);
@@ -12180,6 +12206,9 @@ var popup_PopupModel = /** @class */ (function (_super) {
12180
12206
  return options.actions;
12181
12207
  };
12182
12208
  PopupModel.prototype.updateDisplayMode = function (menuType) {
12209
+ if (this.displayMode !== menuType) {
12210
+ this.setWidthByTarget = menuType === "dropdown";
12211
+ }
12183
12212
  switch (menuType) {
12184
12213
  case "dropdown": {
12185
12214
  this.displayMode = "popup";
@@ -12322,6 +12351,7 @@ function createDropdownActionModelAdvanced(actionOptions, listOptions, popupOpti
12322
12351
  }
12323
12352
  };
12324
12353
  var popupModel = createPopupModelWithListModel(listOptions, popupOptions);
12354
+ popupModel.getTargetCallback = getActionDropdownButtonTarget;
12325
12355
  var newActionOptions = Object.assign({}, actionOptions, {
12326
12356
  component: "sv-action-bar-item-dropdown",
12327
12357
  popupModel: popupModel,
@@ -12744,7 +12774,7 @@ var action_Action = /** @class */ (function (_super) {
12744
12774
  Action.prototype.locTooltipChanged = function () {
12745
12775
  if (!this.locTooltipName)
12746
12776
  return;
12747
- this.tooltip = surveyLocalization.getString(this.locTooltipName, this.locTitle.locale);
12777
+ this.tooltip = getLocaleString(this.locTooltipName, this.locTitle.locale);
12748
12778
  };
12749
12779
  //ILocalizableOwner
12750
12780
  Action.prototype.getLocale = function () { return this.owner ? this.owner.getLocale() : ""; };
@@ -12753,7 +12783,9 @@ var action_Action = /** @class */ (function (_super) {
12753
12783
  Action.prototype.getRenderer = function (name) { return this.owner ? this.owner.getRenderer(name) : null; };
12754
12784
  Action.prototype.getRendererContext = function (locStr) { return this.owner ? this.owner.getRendererContext(locStr) : locStr; };
12755
12785
  Action.prototype.setVisible = function (val) {
12756
- this._visible = val;
12786
+ if (this.visible !== val) {
12787
+ this._visible = val;
12788
+ }
12757
12789
  };
12758
12790
  Action.prototype.getVisible = function () {
12759
12791
  return this._visible;
@@ -12893,7 +12925,7 @@ var adaptive_container_AdaptiveActionContainer = /** @class */ (function (_super
12893
12925
  innerCss: "sv-dots__item",
12894
12926
  iconName: "icon-more",
12895
12927
  visible: false,
12896
- tooltip: surveyLocalization.getString("more"),
12928
+ tooltip: getLocaleString("more"),
12897
12929
  }, {
12898
12930
  items: [],
12899
12931
  allowSelection: false
@@ -13021,9 +13053,12 @@ var adaptive_container_AdaptiveActionContainer = /** @class */ (function (_super
13021
13053
  };
13022
13054
  AdaptiveActionContainer.prototype.setActionsMode = function (mode) {
13023
13055
  this.actions.forEach(function (action) {
13024
- if (mode == "small" && action.disableShrink)
13025
- return;
13026
- action.mode = mode;
13056
+ if (mode == "small" && action.disableShrink) {
13057
+ action.mode = "large";
13058
+ }
13059
+ else {
13060
+ action.mode = mode;
13061
+ }
13027
13062
  });
13028
13063
  };
13029
13064
  AdaptiveActionContainer.prototype.dispose = function () {
@@ -14635,6 +14670,7 @@ var survey_element_SurveyElement = /** @class */ (function (_super) {
14635
14670
  };
14636
14671
  SurveyElement.prototype.setPage = function (parent, newPage) {
14637
14672
  var oldPage = this.getPage(parent);
14673
+ this.prevSurvey = this.survey;
14638
14674
  //fix for the creator v1: https://github.com/surveyjs/survey-creator/issues/1744
14639
14675
  if (typeof newPage === "string") {
14640
14676
  var survey = this.getSurvey();
@@ -14650,6 +14686,7 @@ var survey_element_SurveyElement = /** @class */ (function (_super) {
14650
14686
  if (newPage) {
14651
14687
  newPage.addElement(this, -1);
14652
14688
  }
14689
+ this.prevSurvey = undefined;
14653
14690
  };
14654
14691
  SurveyElement.prototype.getSearchableLocKeys = function (keys) {
14655
14692
  keys.push("title");
@@ -15321,7 +15358,7 @@ var localizablestring_LocalizableString = /** @class */ (function () {
15321
15358
  };
15322
15359
  LocalizableString.prototype.getLocalizationStr = function () {
15323
15360
  var name = this.getLocalizationName();
15324
- return !!name ? surveyLocalization.getString(name, this.locale) : "";
15361
+ return !!name ? getLocaleString(name, this.locale) : "";
15325
15362
  };
15326
15363
  Object.defineProperty(LocalizableString.prototype, "hasHtml", {
15327
15364
  get: function () {
@@ -15485,8 +15522,14 @@ var localizablestring_LocalizableString = /** @class */ (function () {
15485
15522
  if (!!this.sharedData)
15486
15523
  return this.sharedData.getJson();
15487
15524
  var keys = this.getValuesKeys();
15488
- if (keys.length == 0)
15525
+ if (keys.length == 0) {
15526
+ if (this.serializeCallBackText) {
15527
+ var text = this.calcText();
15528
+ if (!!text)
15529
+ return text;
15530
+ }
15489
15531
  return null;
15532
+ }
15490
15533
  if (keys.length == 1 &&
15491
15534
  keys[0] == settings.localization.defaultLocaleName &&
15492
15535
  !settings.serialization.localizableStringSerializeAsObject)
@@ -16370,9 +16413,9 @@ function showConfirmDialog(message, callback, applyTitle, locale, rootElement) {
16370
16413
  var toolbar = popupViewModel.footerToolbar;
16371
16414
  var applyBtn = toolbar.getActionById("apply");
16372
16415
  var cancelBtn = toolbar.getActionById("cancel");
16373
- cancelBtn.title = surveyLocalization.getString("cancel", locale);
16416
+ cancelBtn.title = getLocaleString("cancel", locale);
16374
16417
  cancelBtn.innerCss = "sv-popup__body-footer-item sv-popup__button sd-btn sd-btn--small";
16375
- applyBtn.title = applyTitle || surveyLocalization.getString("ok", locale);
16418
+ applyBtn.title = applyTitle || getLocaleString("ok", locale);
16376
16419
  applyBtn.innerCss = "sv-popup__body-footer-item sv-popup__button sv-popup__button--danger sd-btn sd-btn--small sd-btn--danger";
16377
16420
  configConfirmDialog(popupViewModel);
16378
16421
  return true;
@@ -16712,33 +16755,23 @@ var settings = {
16712
16755
  * Nested properties:
16713
16756
  *
16714
16757
  * - `itemValueSerializeAsObject`: `boolean`\
16715
- * Enable this property if you want to serialize [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) instances as objects even when they include only the `value` property. Default value: `false`. View an example below.
16758
+ * Enable this property if you want to serialize [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) instances (choice options, matrix rows, columns in a [Single-Select Matrix](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-question-model)) as objects even when they include only the `value` property. Default value: `false`.
16716
16759
  *
16717
16760
  * - `itemValueSerializeDisplayText`: `boolean`\
16718
- * Enable this property if you want to serialize the `text` property of [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) objects even when it is empty or equal to the `value` property. Default value: `false`. View an example below.
16761
+ * Enable this property if you want to serialize the `text` property of [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) objects even when it is empty or equal to the `value` property. Default value: `false`.
16719
16762
  *
16720
16763
  * - `localizableStringSerializeAsObject`: `boolean`\
16721
16764
  * Enable this property if you want to serialize [`LocalizableString`](https://surveyjs.io/form-library/documentation/api-reference/localizablestring) instances as objects even when they include only a translation string for the default locale. For example, `"Custom String"` will be serialized as `{ default: "Custom String" }`. Default value: `false`.
16722
16765
  *
16723
- * ```js
16724
- * import { ItemValue, settings } from "survey-core";
16725
- *
16726
- * // `itemValueSerializeAsObject` example
16727
- * settings.serialization.itemValueSerializeAsObject = true;
16728
- * const item = new ItemValue(5);
16729
- * const itemString = item.toJSON(); // Produces { value: 5 } instead of 5
16730
- *
16731
- * // `itemValueSerializeDisplayText` example
16732
- * settings.serialization.itemValueSerializeDisplayText = true;
16733
- * const item = new ItemValue("item1");
16734
- * const itemString = item.toJSON(); // Produces { value: "item1", text: "item1" } instead of "item1"
16735
- * ```
16766
+ * - `matrixDropdownColumnSerializeTitle`: `boolean`\
16767
+ * Enable this property if you want to serialize the `title` property of [`MatrixDropdownColumn`](https://surveyjs.io/form-library/documentation/api-reference/multi-select-matrix-column-values) objects even when it is empty or equal to the `name` property. Default value: `false`.
16736
16768
  * @see [settings.parseNumber](https://surveyjs.io/form-library/documentation/api-reference/settings#parseNumber)
16737
16769
  */
16738
16770
  serialization: {
16739
16771
  itemValueSerializeAsObject: false,
16740
16772
  itemValueSerializeDisplayText: false,
16741
- localizableStringSerializeAsObject: false
16773
+ localizableStringSerializeAsObject: false,
16774
+ matrixDropdownColumnSerializeTitle: false
16742
16775
  },
16743
16776
  //#region serialization section, Obsolete properties
16744
16777
  get itemValueAlwaysSerializeAsObject() { return this.serialization.itemValueSerializeAsObject; },
@@ -17301,6 +17334,10 @@ var settings = {
17301
17334
  * ```
17302
17335
  */
17303
17336
  storeUtcDates: false,
17337
+ // @param reason "function-[functionname]", "question-[questionname]", "expression-operand"
17338
+ onDateCreated: function (newDate, reason, val) {
17339
+ return newDate;
17340
+ },
17304
17341
  /**
17305
17342
  * A function that allows you to define custom parsing rules for numbers represented as string values.
17306
17343
  *
@@ -17325,7 +17362,6 @@ var settings = {
17325
17362
  * @see [settings.serialization](https://surveyjs.io/form-library/documentation/api-reference/settings#serialization)
17326
17363
  */
17327
17364
  parseNumber: function (stringValue, numericValue) { return numericValue; },
17328
- useLegacyIcons: true
17329
17365
  };
17330
17366
 
17331
17367
  // CONCATENATED MODULE: ./packages/survey-core/src/survey-error.ts
@@ -17378,7 +17414,7 @@ var survey_error_SurveyError = /** @class */ (function () {
17378
17414
  return !!this.errorOwner ? this.errorOwner.getLocale() : "";
17379
17415
  };
17380
17416
  SurveyError.prototype.getLocalizationString = function (locStrName) {
17381
- return surveyLocalization.getString(locStrName, this.getLocale());
17417
+ return getLocaleString(locStrName, this.getLocale());
17382
17418
  };
17383
17419
  SurveyError.prototype.updateText = function () {
17384
17420
  if (this.onUpdateErrorTextCallback) {
@@ -17475,8 +17511,7 @@ var error_ExceedSizeError = /** @class */ (function (_super) {
17475
17511
  return "exceedsize";
17476
17512
  };
17477
17513
  ExceedSizeError.prototype.getDefaultText = function () {
17478
- return surveyLocalization
17479
- .getString("exceedMaxSize")["format"](this.getTextSize());
17514
+ return getLocaleString("exceedMaxSize")["format"](this.getTextSize());
17480
17515
  };
17481
17516
  ExceedSizeError.prototype.getTextSize = function () {
17482
17517
  var sizes = ["Bytes", "KB", "MB", "GB", "TB"];
@@ -17607,8 +17642,7 @@ var error_MinRowCountError = /** @class */ (function (_super) {
17607
17642
  return "minrowcounterror";
17608
17643
  };
17609
17644
  MinRowCountError.prototype.getDefaultText = function () {
17610
- return surveyLocalization
17611
- .getString("minRowCountError")["format"](this.minRowCount);
17645
+ return getLocaleString("minRowCountError")["format"](this.minRowCount);
17612
17646
  };
17613
17647
  return MinRowCountError;
17614
17648
  }(survey_error_SurveyError));
@@ -18569,6 +18603,9 @@ var text_area_TextAreaModel = /** @class */ (function () {
18569
18603
  this.updateElement();
18570
18604
  }
18571
18605
  };
18606
+ TextAreaModel.prototype.resetElement = function () {
18607
+ this.element = undefined;
18608
+ };
18572
18609
  TextAreaModel.prototype.getTextValue = function () {
18573
18610
  if (!!this.options.getTextValue)
18574
18611
  return this.options.getTextValue() || "";
@@ -18725,6 +18762,7 @@ var text_area_TextAreaModel = /** @class */ (function () {
18725
18762
  if (this.question) {
18726
18763
  this.question.unRegisterFunctionOnPropertyValueChanged(this.options.propertyName, "__textarea");
18727
18764
  }
18765
+ this.resetElement();
18728
18766
  };
18729
18767
  return TextAreaModel;
18730
18768
  }());
@@ -21984,7 +22022,7 @@ var question_Question = /** @class */ (function (_super) {
21984
22022
  get: function () {
21985
22023
  if (this.isNewA11yStructure)
21986
22024
  return null;
21987
- if (this.hasTitle) {
22025
+ if (this.hasTitle && this.hasDescription) {
21988
22026
  return this.ariaDescriptionId;
21989
22027
  }
21990
22028
  else {
@@ -22052,7 +22090,7 @@ var question_Question = /** @class */ (function (_super) {
22052
22090
  });
22053
22091
  Object.defineProperty(Question.prototype, "a11y_input_ariaDescribedBy", {
22054
22092
  get: function () {
22055
- if (this.hasTitle && !this.parentQuestion) {
22093
+ if (this.hasTitle && !this.parentQuestion && this.hasDescription) {
22056
22094
  return this.ariaDescriptionId;
22057
22095
  }
22058
22096
  else {
@@ -22737,7 +22775,9 @@ var itemvalue_ItemValue = /** @class */ (function (_super) {
22737
22775
  return isVisible && visible;
22738
22776
  };
22739
22777
  ItemValue.prototype.setVisible = function (val) {
22740
- this._visible = val;
22778
+ if (this.visible !== val) {
22779
+ this._visible = val;
22780
+ }
22741
22781
  };
22742
22782
  ItemValue.prototype.getLocTitle = function () {
22743
22783
  return this.locText;
@@ -25635,18 +25675,15 @@ var questionfactory_QuestionFactory = /** @class */ (function () {
25635
25675
  }
25636
25676
  Object.defineProperty(QuestionFactory, "DefaultChoices", {
25637
25677
  get: function () {
25638
- return [
25639
- surveyLocalization.getString("choices_Item") + "1",
25640
- surveyLocalization.getString("choices_Item") + "2",
25641
- surveyLocalization.getString("choices_Item") + "3",
25642
- ];
25678
+ var choice = getLocaleString("choices_Item");
25679
+ return [choice + "1", choice + "2", choice + "3"];
25643
25680
  },
25644
25681
  enumerable: false,
25645
25682
  configurable: true
25646
25683
  });
25647
25684
  Object.defineProperty(QuestionFactory, "DefaultColums", {
25648
25685
  get: function () {
25649
- var colName = surveyLocalization.getString("matrix_column") + " ";
25686
+ var colName = getLocaleString("matrix_column") + " ";
25650
25687
  return [colName + "1", colName + "2", colName + "3"];
25651
25688
  },
25652
25689
  enumerable: false,
@@ -25654,7 +25691,7 @@ var questionfactory_QuestionFactory = /** @class */ (function () {
25654
25691
  });
25655
25692
  Object.defineProperty(QuestionFactory, "DefaultRows", {
25656
25693
  get: function () {
25657
- var rowName = surveyLocalization.getString("matrix_row") + " ";
25694
+ var rowName = getLocaleString("matrix_row") + " ";
25658
25695
  return [rowName + "1", rowName + "2"];
25659
25696
  },
25660
25697
  enumerable: false,
@@ -25662,7 +25699,7 @@ var questionfactory_QuestionFactory = /** @class */ (function () {
25662
25699
  });
25663
25700
  Object.defineProperty(QuestionFactory, "DefaultMutlipleTextItems", {
25664
25701
  get: function () {
25665
- var itemName = surveyLocalization.getString("multipletext_itemname");
25702
+ var itemName = getLocaleString("multipletext_itemname");
25666
25703
  return [itemName + "1", itemName + "2"];
25667
25704
  },
25668
25705
  enumerable: false,
@@ -26037,7 +26074,7 @@ var question_expression_QuestionExpressionModel = /** @class */ (function (_supe
26037
26074
  };
26038
26075
  QuestionExpressionModel.prototype.getValueAsStr = function (val) {
26039
26076
  if (this.displayStyle == "date") {
26040
- var d = new Date(val);
26077
+ var d = createDate("question-expression", val);
26041
26078
  if (!!d && !!d.toLocaleDateString)
26042
26079
  return d.toLocaleDateString();
26043
26080
  }
@@ -26362,26 +26399,18 @@ var matrixDropdownColumnTypes = {
26362
26399
  */
26363
26400
  var question_matrixdropdowncolumn_MatrixDropdownColumn = /** @class */ (function (_super) {
26364
26401
  question_matrixdropdowncolumn_extends(MatrixDropdownColumn, _super);
26365
- function MatrixDropdownColumn(name, title) {
26366
- if (title === void 0) { title = null; }
26402
+ function MatrixDropdownColumn(name, title, colOwner) {
26367
26403
  var _this = _super.call(this) || this;
26368
- _this.colOwnerValue = null;
26369
26404
  _this.indexValue = -1;
26370
26405
  _this._hasVisibleCell = true;
26371
26406
  _this.isColumnsVisibleIf = true;
26372
26407
  _this.previousChoicesId = undefined;
26408
+ _this.colOwnerValue = colOwner;
26373
26409
  _this.createLocalizableString("totalFormat", _this);
26374
26410
  _this.createLocalizableString("cellHint", _this);
26375
26411
  _this.registerPropertyChangedHandlers(["showInMultipleColumns"], function () { _this.doShowInMultipleColumnsChanged(); });
26376
26412
  _this.registerPropertyChangedHandlers(["visible"], function () { _this.doColumnVisibilityChanged(); });
26377
- _this.updateTemplateQuestion();
26378
- _this.name = name;
26379
- if (title) {
26380
- _this.title = title;
26381
- }
26382
- else {
26383
- _this.templateQuestion.locTitle.strChanged();
26384
- }
26413
+ _this.updateTemplateQuestion(undefined, name, title);
26385
26414
  return _this;
26386
26415
  }
26387
26416
  MatrixDropdownColumn.getColumnTypes = function () {
@@ -27183,7 +27212,7 @@ var question_matrixdropdowncolumn_MatrixDropdownColumn = /** @class */ (function
27183
27212
  return this.colOwner.getCellType();
27184
27213
  return settings.matrix.defaultCellType;
27185
27214
  };
27186
- MatrixDropdownColumn.prototype.updateTemplateQuestion = function (newCellType) {
27215
+ MatrixDropdownColumn.prototype.updateTemplateQuestion = function (newCellType, name, title) {
27187
27216
  var _this = this;
27188
27217
  var curCellType = this.getDefaultCellQuestionType(newCellType);
27189
27218
  var prevCellType = this.templateQuestion
@@ -27197,6 +27226,18 @@ var question_matrixdropdowncolumn_MatrixDropdownColumn = /** @class */ (function
27197
27226
  this.templateQuestionValue = this.createNewQuestion(curCellType);
27198
27227
  this.templateQuestion.locOwner = this;
27199
27228
  this.addProperties(curCellType);
27229
+ if (!!name) {
27230
+ this.name = name;
27231
+ }
27232
+ if (!!title) {
27233
+ this.title = title;
27234
+ }
27235
+ else {
27236
+ this.templateQuestion.locTitle.strChanged();
27237
+ }
27238
+ if (settings.serialization.matrixDropdownColumnSerializeTitle) {
27239
+ this.templateQuestion.locTitle.serializeCallBackText = true;
27240
+ }
27200
27241
  this.templateQuestion.onPropertyChanged.add(function (sender, options) {
27201
27242
  _this.propertyValueChanged(options.name, options.oldValue, options.newValue, options.arrayChanges, options.target);
27202
27243
  });
@@ -30539,8 +30580,7 @@ var question_matrixdropdownbase_QuestionMatrixDropdownModelBase = /** @class */
30539
30580
  configurable: true
30540
30581
  });
30541
30582
  QuestionMatrixDropdownModelBase.prototype.addColumn = function (name, title) {
30542
- if (title === void 0) { title = null; }
30543
- var column = new question_matrixdropdowncolumn_MatrixDropdownColumn(name, title);
30583
+ var column = new question_matrixdropdowncolumn_MatrixDropdownColumn(name, title, this);
30544
30584
  this.columns.push(column);
30545
30585
  return column;
30546
30586
  };
@@ -34822,7 +34862,7 @@ var dxSurveyService_dxSurveyService = /** @class */ (function () {
34822
34862
  if (clientId === void 0) { clientId = null; }
34823
34863
  if (isPartialCompleted === void 0) { isPartialCompleted = false; }
34824
34864
  if (!this.canSendResult(result)) {
34825
- onSendResult(false, surveyLocalization.getString("savingExceedSize", this.locale), undefined);
34865
+ onSendResult(false, getLocaleString("savingExceedSize", this.locale), undefined);
34826
34866
  }
34827
34867
  else {
34828
34868
  this.sendResultCore(postId, result, onSendResult, clientId, isPartialCompleted);
@@ -36455,7 +36495,7 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
36455
36495
  };
36456
36496
  Object.defineProperty(PanelModelBase.prototype, "hasTitle", {
36457
36497
  get: function () {
36458
- return ((this.canShowTitle() && (this.hasTextInTitle || this.locTitle.textOrHtml.length > 0)) ||
36498
+ return ((this.canShowTitle(this.survey) && (this.hasTextInTitle || this.locTitle.textOrHtml.length > 0)) ||
36459
36499
  (this.isDesignMode && !(settings.supportCreatorV2 && this.isPanel) && this.showTitle && settings.designMode.showEmptyTitles));
36460
36500
  },
36461
36501
  enumerable: false,
@@ -36480,7 +36520,7 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
36480
36520
  }
36481
36521
  };
36482
36522
  PanelModelBase.prototype.removeFromParent = function () { };
36483
- PanelModelBase.prototype.canShowTitle = function () { return true; };
36523
+ PanelModelBase.prototype.canShowTitle = function (survey) { return true; };
36484
36524
  Object.defineProperty(PanelModelBase.prototype, "_showDescription", {
36485
36525
  get: function () {
36486
36526
  if (!this.hasTitle && this.isDesignMode)
@@ -37065,7 +37105,7 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
37065
37105
  PanelModelBase.prototype.hasErrorsInPanels = function (rec) {
37066
37106
  var errors = [];
37067
37107
  this.hasRequiredError(rec, errors);
37068
- if (this.survey) {
37108
+ if (this.isPanel && this.survey) {
37069
37109
  var customError = this.survey.validatePanel(this);
37070
37110
  if (customError) {
37071
37111
  errors.push(customError);
@@ -37582,29 +37622,29 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
37582
37622
  }
37583
37623
  }
37584
37624
  };
37625
+ PanelModelBase.prototype.canFireAddRemoveNotifications = function (element) {
37626
+ return !!this.survey && element.prevSurvey !== this.survey;
37627
+ };
37585
37628
  PanelModelBase.prototype.onAddElement = function (element, index) {
37586
37629
  var _this = this;
37630
+ var survey = this.survey;
37631
+ var fireNotification = this.canFireAddRemoveNotifications(element);
37587
37632
  element.setSurveyImpl(this.surveyImpl);
37588
37633
  element.parent = this;
37589
37634
  this.markQuestionListDirty();
37590
37635
  if (this.canBuildRows()) {
37591
37636
  this.updateRowsOnElementAdded(element);
37592
37637
  }
37593
- if (element.isPanel) {
37594
- var p = element;
37595
- if (this.survey) {
37596
- this.survey.panelAdded(p, index, this, this.root);
37638
+ if (fireNotification) {
37639
+ if (element.isPanel) {
37640
+ survey.panelAdded(element, index, this, this.root);
37597
37641
  }
37598
- }
37599
- else {
37600
- if (this.survey) {
37601
- var q = element;
37602
- this.survey.questionAdded(q, index, this, this.root);
37642
+ else {
37643
+ survey.questionAdded(element, index, this, this.root);
37603
37644
  }
37604
37645
  }
37605
37646
  if (!!this.addElementCallback)
37606
37647
  this.addElementCallback(element);
37607
- var self = this;
37608
37648
  element.registerPropertyChangedHandlers(["visible", "isVisible"], function () {
37609
37649
  _this.onElementVisibilityChanged(element);
37610
37650
  }, this.id);
@@ -37626,7 +37666,7 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
37626
37666
  this.onElementVisibilityChanged(this);
37627
37667
  };
37628
37668
  PanelModelBase.prototype.onRemoveElementNotifySurvey = function (element) {
37629
- if (!this.survey)
37669
+ if (!this.canFireAddRemoveNotifications(element))
37630
37670
  return;
37631
37671
  if (!element.isPanel) {
37632
37672
  this.survey.questionRemoved(element);
@@ -38625,6 +38665,12 @@ var panel_PanelModel = /** @class */ (function (_super) {
38625
38665
  return;
38626
38666
  this.survey.cancelPreviewByPage(this);
38627
38667
  };
38668
+ PanelModel.prototype.canShowTitle = function (survey) {
38669
+ var page = this.originalPage;
38670
+ if (!!page)
38671
+ return page.canShowTitle(survey);
38672
+ return _super.prototype.canShowTitle.call(this, survey);
38673
+ };
38628
38674
  Object.defineProperty(PanelModel.prototype, "cssTitle", {
38629
38675
  get: function () {
38630
38676
  return this.getCssTitle(this.cssClasses.panel);
@@ -39124,8 +39170,8 @@ var page_PageModel = /** @class */ (function (_super) {
39124
39170
  PageModel.prototype.canShowPageNumber = function () {
39125
39171
  return this.survey && this.survey.showPageNumbers;
39126
39172
  };
39127
- PageModel.prototype.canShowTitle = function () {
39128
- return this.survey && this.survey.showPageTitles;
39173
+ PageModel.prototype.canShowTitle = function (survey) {
39174
+ return !survey || survey.showPageTitles;
39129
39175
  };
39130
39176
  PageModel.prototype.setTitleValue = function (val) {
39131
39177
  _super.prototype.setTitleValue.call(this, val);
@@ -39878,82 +39924,6 @@ var surveyToc_TOCModel = /** @class */ (function () {
39878
39924
  }());
39879
39925
 
39880
39926
 
39881
- // CONCATENATED MODULE: ./packages/survey-core/src/svgbundle.ts
39882
-
39883
-
39884
- var SvgIconData = /** @class */ (function () {
39885
- function SvgIconData() {
39886
- }
39887
- return SvgIconData;
39888
- }());
39889
- var svgbundle_SvgIconRegistry = /** @class */ (function () {
39890
- function SvgIconRegistry() {
39891
- this.icons = {};
39892
- this.iconPrefix = "icon-";
39893
- }
39894
- SvgIconRegistry.prototype.processId = function (iconId, iconPrefix) {
39895
- if (iconId.indexOf(iconPrefix) == 0)
39896
- iconId = iconId.substring(iconPrefix.length);
39897
- iconId = renamedIcons[iconId] || iconId;
39898
- return iconId;
39899
- };
39900
- SvgIconRegistry.prototype.registerIconFromSymbol = function (iconId, iconSymbolSvg) {
39901
- this.icons[iconId] = iconSymbolSvg;
39902
- };
39903
- SvgIconRegistry.prototype.registerIconFromSvgViaElement = function (iconId, iconSvg, iconPrefix) {
39904
- if (iconPrefix === void 0) { iconPrefix = this.iconPrefix; }
39905
- if (!DomDocumentHelper.isAvailable())
39906
- return;
39907
- iconId = this.processId(iconId, iconPrefix);
39908
- var divSvg = DomDocumentHelper.createElement("div");
39909
- divSvg.innerHTML = iconSvg;
39910
- var symbol = DomDocumentHelper.createElement("symbol");
39911
- var svg = divSvg.querySelector("svg");
39912
- symbol.innerHTML = svg.innerHTML;
39913
- for (var i = 0; i < svg.attributes.length; i++) {
39914
- symbol.setAttributeNS("http://www.w3.org/2000/svg", svg.attributes[i].name, svg.attributes[i].value);
39915
- }
39916
- symbol.id = iconPrefix + iconId;
39917
- this.registerIconFromSymbol(iconId, symbol.outerHTML);
39918
- };
39919
- SvgIconRegistry.prototype.registerIconFromSvg = function (iconId, iconSvg, iconPrefix) {
39920
- if (iconPrefix === void 0) { iconPrefix = this.iconPrefix; }
39921
- iconId = this.processId(iconId, iconPrefix);
39922
- var startStr = "<svg ";
39923
- var endStr = "</svg>";
39924
- iconSvg = iconSvg.trim();
39925
- var str = iconSvg.toLowerCase();
39926
- if (str.substring(0, startStr.length) === startStr &&
39927
- str.substring(str.length - endStr.length, str.length) === endStr) {
39928
- this.registerIconFromSymbol(iconId, "<symbol " +
39929
- "id=\"" + iconPrefix + iconId + "\" " +
39930
- iconSvg.substring(startStr.length, str.length - endStr.length) +
39931
- "</symbol>");
39932
- return true;
39933
- }
39934
- else {
39935
- return false;
39936
- }
39937
- };
39938
- SvgIconRegistry.prototype.registerIconsFromFolder = function (r) {
39939
- var _this = this;
39940
- r.keys().forEach(function (key) {
39941
- _this.registerIconFromSvg(key.substring(2, key.length - 4).toLowerCase(), r(key));
39942
- });
39943
- };
39944
- SvgIconRegistry.prototype.iconsRenderedHtml = function () {
39945
- var _this = this;
39946
- return Object.keys(this.icons).map(function (icon) { return _this.icons[icon]; }).join("");
39947
- };
39948
- return SvgIconRegistry;
39949
- }());
39950
-
39951
- var SvgRegistry = new svgbundle_SvgIconRegistry();
39952
- var SvgBundleViewModel;
39953
- var svgBundle = {};
39954
- svgBundle.V1 = __webpack_require__("./packages/survey-core/src/images-v1 sync recursive \\.svg$");
39955
- svgBundle.V2 = __webpack_require__("./packages/survey-core/src/images-v2 sync recursive \\.svg$");
39956
-
39957
39927
  // CONCATENATED MODULE: ./packages/survey-core/src/survey.ts
39958
39928
  var survey_extends = (undefined && undefined.__extends) || (function () {
39959
39929
  var extendStatics = function (d, b) {
@@ -40002,7 +39972,6 @@ var survey_decorate = (undefined && undefined.__decorate) || function (decorator
40002
39972
 
40003
39973
 
40004
39974
 
40005
-
40006
39975
  /**
40007
39976
  * The `SurveyModel` object contains properties and methods that allow you to control the survey and access its elements.
40008
39977
  *
@@ -40332,9 +40301,8 @@ var survey_SurveyModel = /** @class */ (function (_super) {
40332
40301
  */
40333
40302
  _this.onGetResult = _this.addEvent();
40334
40303
  /**
40335
- * An event that is raised when Survey Creator opens a dialog window for users to select files.
40336
- * @see onUploadFile
40337
- * @see uploadFiles
40304
+ * An event that is raised when a respondent opens a dialog window to select files.
40305
+ * @see chooseFiles
40338
40306
  */
40339
40307
  _this.onOpenFileChooser = _this.addEvent();
40340
40308
  /**
@@ -40959,7 +40927,6 @@ var survey_SurveyModel = /** @class */ (function (_super) {
40959
40927
  data: _this.navigationBar
40960
40928
  });
40961
40929
  _this.locTitle.onStringChanged.add(function () { return _this.titleIsEmpty = _this.locTitle.isEmpty; });
40962
- _this.registerIcons();
40963
40930
  return _this;
40964
40931
  }
40965
40932
  Object.defineProperty(SurveyModel.prototype, "platformName", {
@@ -44910,9 +44877,6 @@ var survey_SurveyModel = /** @class */ (function (_super) {
44910
44877
  single.addPanel(panel);
44911
44878
  var json = new jsonobject_JsonObject().toJsonObject(page);
44912
44879
  new jsonobject_JsonObject().toObject(json, panel);
44913
- if (!this.showPageTitles) {
44914
- panel.title = "";
44915
- }
44916
44880
  }
44917
44881
  return single;
44918
44882
  };
@@ -45499,6 +45463,11 @@ var survey_SurveyModel = /** @class */ (function (_super) {
45499
45463
  this.rootElement = htmlElement;
45500
45464
  this.addScrollEventListener();
45501
45465
  };
45466
+ SurveyModel.prototype.beforeDestroySurveyElement = function () {
45467
+ this.destroyResizeObserver();
45468
+ this.removeScrollEventListener();
45469
+ this.rootElement = undefined;
45470
+ };
45502
45471
  SurveyModel.prototype.processResponsiveness = function (width, mobileWidth, height) {
45503
45472
  var isMobile = width < mobileWidth;
45504
45473
  var isMobileChanged = this.isMobile !== isMobile;
@@ -45878,7 +45847,13 @@ var survey_SurveyModel = /** @class */ (function (_super) {
45878
45847
  }, elementsToRenderBefore);
45879
45848
  }
45880
45849
  else {
45881
- survey_element_SurveyElement.ScrollElementToTop(options.elementId, scrollIfVisible, scrollIntoViewOptions, onScolledCallback);
45850
+ if (!elementPage_1 && !this.isSinglePage && !this.isDesignMode && this.rootElement) {
45851
+ var elementToScroll = this.rootElement.querySelector(classesToSelector(this.css.rootWrapper));
45852
+ survey_element_SurveyElement.ScrollElementToViewCore(elementToScroll, false, scrollIfVisible, scrollIntoViewOptions, onScolledCallback);
45853
+ }
45854
+ else {
45855
+ survey_element_SurveyElement.ScrollElementToTop(options.elementId, scrollIfVisible, scrollIntoViewOptions, onScolledCallback);
45856
+ }
45882
45857
  }
45883
45858
  }
45884
45859
  };
@@ -48531,16 +48506,6 @@ var survey_SurveyModel = /** @class */ (function (_super) {
48531
48506
  }
48532
48507
  }
48533
48508
  };
48534
- SurveyModel.prototype.registerIcons = function () {
48535
- var path;
48536
- if (settings.useLegacyIcons) {
48537
- path = svgBundle.V1;
48538
- }
48539
- else {
48540
- path = svgBundle.V2;
48541
- }
48542
- SvgRegistry.registerIconsFromFolder(path);
48543
- };
48544
48509
  SurveyModel.TemplateRendererComponentName = "sv-template-renderer";
48545
48510
  // private static stylesManager: StylesManager = null;
48546
48511
  SurveyModel.platform = "unknown";
@@ -51350,7 +51315,7 @@ Serializer.addClass("selectbase", [
51350
51315
  {
51351
51316
  name: "choices:itemvalue[]", uniqueProperty: "value",
51352
51317
  baseValue: function () {
51353
- return surveyLocalization.getString("choices_Item");
51318
+ return getLocaleString("choices_Item");
51354
51319
  },
51355
51320
  dependsOn: "choicesFromQuestion",
51356
51321
  visibleIf: function (obj) {
@@ -51550,15 +51515,16 @@ var PopupUtils = /** @class */ (function () {
51550
51515
  }
51551
51516
  return { left: Math.round(currentLeft), top: Math.round(currentTop) };
51552
51517
  };
51553
- PopupUtils.getCorrectedVerticalDimensions = function (top, height, windowHeight, verticalPosition, canShrink) {
51518
+ PopupUtils.getCorrectedVerticalDimensions = function (top, height, windowHeight, verticalPosition, canShrink, margins) {
51554
51519
  if (canShrink === void 0) { canShrink = true; }
51520
+ if (margins === void 0) { margins = { top: 0, bottom: 0 }; }
51555
51521
  var result;
51556
51522
  var maxHeight = windowHeight - PopupUtils.bottomIndent;
51557
51523
  if (verticalPosition === "top") {
51558
51524
  result = { height: height, top: top };
51559
51525
  }
51560
- if (top < 0) {
51561
- result = { height: canShrink ? height + top : height, top: 0 };
51526
+ if (top < -margins.top) {
51527
+ result = { height: canShrink ? height + top : height, top: -margins.top };
51562
51528
  }
51563
51529
  else if (height + top > windowHeight) {
51564
51530
  var newHeight = Math.min(height, maxHeight - top);
@@ -51566,7 +51532,7 @@ var PopupUtils = /** @class */ (function () {
51566
51532
  }
51567
51533
  if (result) {
51568
51534
  result.height = Math.min(result.height, maxHeight);
51569
- result.top = Math.max(result.top, 0);
51535
+ result.top = Math.max(result.top, -margins.top);
51570
51536
  }
51571
51537
  return result;
51572
51538
  };
@@ -52050,7 +52016,7 @@ var popup_view_model_PopupBaseViewModel = /** @class */ (function (_super) {
52050
52016
  getElement(settings.environment.popupMountContainer).appendChild(container);
52051
52017
  }
52052
52018
  };
52053
- PopupBaseViewModel.prototype.setComponentElement = function (componentRoot, targetElement, areaElement) {
52019
+ PopupBaseViewModel.prototype.setComponentElement = function (componentRoot) {
52054
52020
  if (!!componentRoot) {
52055
52021
  this.containerElement = componentRoot;
52056
52022
  }
@@ -52137,10 +52103,8 @@ function calculateIsTablet(windowWidth, windowHeight) {
52137
52103
  }
52138
52104
  var popup_dropdown_view_model_PopupDropdownViewModel = /** @class */ (function (_super) {
52139
52105
  popup_dropdown_view_model_extends(PopupDropdownViewModel, _super);
52140
- function PopupDropdownViewModel(model, targetElement, areaElement) {
52106
+ function PopupDropdownViewModel(model) {
52141
52107
  var _this = _super.call(this, model) || this;
52142
- _this.targetElement = targetElement;
52143
- _this.areaElement = areaElement;
52144
52108
  _this.scrollEventCallBack = function (event) {
52145
52109
  if (_this.isOverlay && IsTouch) {
52146
52110
  event.stopPropagation();
@@ -52178,22 +52142,30 @@ var popup_dropdown_view_model_PopupDropdownViewModel = /** @class */ (function (
52178
52142
  this.isTablet = calculateIsTablet(windowWidth, windowHeight);
52179
52143
  };
52180
52144
  PopupDropdownViewModel.prototype.getAvailableAreaRect = function () {
52181
- if (this.areaElement) {
52182
- var areaRect = this.areaElement.getBoundingClientRect();
52145
+ var areaElement = this.model.getAreaCallback ? this.model.getAreaCallback(this.container) : undefined;
52146
+ if (areaElement) {
52147
+ var areaRect = areaElement.getBoundingClientRect();
52183
52148
  return new Rect(areaRect.x, areaRect.y, areaRect.width, areaRect.height);
52184
52149
  }
52185
52150
  return new Rect(0, 0, DomWindowHelper.getInnerWidth(), DomWindowHelper.getInnerHeight());
52186
52151
  };
52187
52152
  PopupDropdownViewModel.prototype.getTargetElementRect = function () {
52188
- var rect = this.targetElement.getBoundingClientRect();
52153
+ var componentRoot = this.container;
52154
+ var targetElement = this.model.getTargetCallback ? this.model.getTargetCallback(componentRoot) : undefined;
52155
+ if (!!componentRoot && !!componentRoot.parentElement && !this.isModal && !targetElement) {
52156
+ targetElement = componentRoot.parentElement;
52157
+ }
52158
+ if (!targetElement)
52159
+ return null;
52160
+ var rect = targetElement.getBoundingClientRect();
52189
52161
  var areaRect = this.getAvailableAreaRect();
52190
52162
  return new Rect(rect.left - areaRect.left, rect.top - areaRect.top, rect.width, rect.height);
52191
52163
  };
52192
52164
  PopupDropdownViewModel.prototype._updatePosition = function () {
52193
52165
  var _a, _b, _c;
52194
- if (!this.targetElement)
52195
- return;
52196
52166
  var targetElementRect = this.getTargetElementRect();
52167
+ if (!targetElementRect)
52168
+ return;
52197
52169
  var area = this.getAvailableAreaRect();
52198
52170
  var popupContainer = (_a = this.container) === null || _a === void 0 ? void 0 : _a.querySelector(this.containerSelector);
52199
52171
  if (!popupContainer)
@@ -52203,6 +52175,8 @@ var popup_dropdown_view_model_PopupDropdownViewModel = /** @class */ (function (
52203
52175
  var popupComputedStyle = DomDocumentHelper.getComputedStyle(popupContainer);
52204
52176
  var marginLeft = (parseFloat(popupComputedStyle.marginLeft) || 0);
52205
52177
  var marginRight = (parseFloat(popupComputedStyle.marginRight) || 0);
52178
+ var marginTop = (parseFloat(popupComputedStyle.marginTop) || 0);
52179
+ var marginBottom = (parseFloat(popupComputedStyle.marginBottom) || 0);
52206
52180
  var height = popupContainer.offsetHeight - scrollContent.offsetHeight + scrollContent.scrollHeight;
52207
52181
  var width = popupContainer.getBoundingClientRect().width;
52208
52182
  this.model.setWidthByTarget && (this.minWidth = targetElementRect.width + "px");
@@ -52217,7 +52191,7 @@ var popup_dropdown_view_model_PopupDropdownViewModel = /** @class */ (function (
52217
52191
  this.popupDirection = PopupUtils.calculatePopupDirection(verticalPosition, actualHorizontalPosition);
52218
52192
  var pos = PopupUtils.calculatePosition(targetElementRect, height, width + marginLeft + marginRight, verticalPosition, actualHorizontalPosition, this.model.positionMode);
52219
52193
  if (DomWindowHelper.isAvailable()) {
52220
- var newVerticalDimensions = PopupUtils.getCorrectedVerticalDimensions(pos.top, height, area.height, verticalPosition, this.model.canShrink);
52194
+ var newVerticalDimensions = PopupUtils.getCorrectedVerticalDimensions(pos.top, height, area.height, verticalPosition, this.model.canShrink, { top: marginTop, bottom: marginBottom });
52221
52195
  if (!!newVerticalDimensions) {
52222
52196
  this.height = newVerticalDimensions.height + "px";
52223
52197
  pos.top = newVerticalDimensions.top;
@@ -52279,17 +52253,11 @@ var popup_dropdown_view_model_PopupDropdownViewModel = /** @class */ (function (
52279
52253
  PopupDropdownViewModel.prototype.getPopupHeaderTemplate = function () {
52280
52254
  return "popup-pointer";
52281
52255
  };
52282
- PopupDropdownViewModel.prototype.setComponentElement = function (componentRoot, targetElement, areaElement) {
52256
+ PopupDropdownViewModel.prototype.setComponentElement = function (componentRoot) {
52283
52257
  _super.prototype.setComponentElement.call(this, componentRoot);
52284
- if (!!componentRoot && !!componentRoot.parentElement && !this.isModal) {
52285
- this.targetElement = targetElement || componentRoot.parentElement;
52286
- this.areaElement = areaElement;
52287
- }
52288
52258
  };
52289
52259
  PopupDropdownViewModel.prototype.resetComponentElement = function () {
52290
52260
  _super.prototype.resetComponentElement.call(this);
52291
- this.targetElement = undefined;
52292
- this.areaElement = undefined;
52293
52261
  };
52294
52262
  PopupDropdownViewModel.prototype.updateOnShowing = function () {
52295
52263
  var root = settings.environment.root;
@@ -52573,8 +52541,12 @@ var dropdownListModel_DropdownListModel = /** @class */ (function (_super) {
52573
52541
  if (option.isVisible) {
52574
52542
  _this.updatePopupFocusFirstInputSelector();
52575
52543
  var dropdownMenuOptions = _this.getDropdownMenuOptions();
52544
+ var prevMenuType = dropdownMenuOptions.menuType;
52576
52545
  _this.question.processOpenDropdownMenu(dropdownMenuOptions);
52577
- _this._popupModel.updateDisplayMode(dropdownMenuOptions.menuType);
52546
+ if (prevMenuType !== dropdownMenuOptions.menuType) {
52547
+ _this._popupModel.updateDisplayMode(dropdownMenuOptions.menuType);
52548
+ _this.listModel.setSearchEnabled(_this.searchEnabled && dropdownMenuOptions.menuType !== "dropdown");
52549
+ }
52578
52550
  if (!!_this.question.onOpenedCallBack) {
52579
52551
  _this.question.onOpenedCallBack();
52580
52552
  }
@@ -52878,8 +52850,7 @@ var dropdownListModel_DropdownListModel = /** @class */ (function (_super) {
52878
52850
  configurable: true
52879
52851
  });
52880
52852
  DropdownListModel.prototype.setSearchEnabled = function (newValue) {
52881
- this.listModel.searchEnabled = IsTouch;
52882
- this.listModel.showSearchClearButton = IsTouch;
52853
+ this.listModel.setSearchEnabled(IsTouch && newValue);
52883
52854
  this.searchEnabled = newValue;
52884
52855
  };
52885
52856
  DropdownListModel.prototype.setChoicesLazyLoadEnabled = function (newValue) {
@@ -53069,6 +53040,7 @@ var dropdownListModel_DropdownListModel = /** @class */ (function (_super) {
53069
53040
  if (!!this.popupModel) {
53070
53041
  this.popupModel.dispose();
53071
53042
  }
53043
+ this.htmlCleanerElement = undefined;
53072
53044
  };
53073
53045
  DropdownListModel.prototype.scrollToFocusedItem = function () {
53074
53046
  this.listModel.scrollToFocusedItem();
@@ -54495,13 +54467,13 @@ Serializer.addClass("matrix", [
54495
54467
  {
54496
54468
  name: "columns:itemvalue[]", uniqueProperty: "value",
54497
54469
  baseValue: function () {
54498
- return surveyLocalization.getString("matrix_column");
54470
+ return getLocaleString("matrix_column");
54499
54471
  },
54500
54472
  },
54501
54473
  {
54502
54474
  name: "rows:itemvalue[]", uniqueProperty: "value",
54503
54475
  baseValue: function () {
54504
- return surveyLocalization.getString("matrix_row");
54476
+ return getLocaleString("matrix_row");
54505
54477
  },
54506
54478
  },
54507
54479
  { name: "cells:cells", serializationProperty: "cells" },
@@ -54801,6 +54773,7 @@ var InputElementAdapter = /** @class */ (function () {
54801
54773
  };
54802
54774
  InputElementAdapter.prototype.dispose = function () {
54803
54775
  this.removeInputEventListener();
54776
+ this.inputElement = undefined;
54804
54777
  this.inputMaskInstance.onPropertyChanged.remove(this.inputMaskInstancePropertyChangedHandler);
54805
54778
  };
54806
54779
  return InputElementAdapter;
@@ -55253,6 +55226,8 @@ var question_text_QuestionTextModel = /** @class */ (function (_super) {
55253
55226
  });
55254
55227
  Object.defineProperty(QuestionTextModel.prototype, "inputValue", {
55255
55228
  get: function () {
55229
+ if (!this._inputValue && !this.maskTypeIsEmpty)
55230
+ return this.maskInstance.getMaskedValue("");
55256
55231
  return this._inputValue;
55257
55232
  },
55258
55233
  set: function (val) {
@@ -55288,16 +55263,19 @@ var question_text_QuestionTextModel = /** @class */ (function (_super) {
55288
55263
  QuestionTextModel.prototype.hasToConvertToUTC = function (val) {
55289
55264
  return settings.storeUtcDates && this.isDateTimeLocaleType() && !!val;
55290
55265
  };
55266
+ QuestionTextModel.prototype.createDate = function (val) {
55267
+ return createDate("question-text", val);
55268
+ };
55291
55269
  QuestionTextModel.prototype.valueForSurveyCore = function (val) {
55292
55270
  if (this.hasToConvertToUTC(val)) {
55293
- val = new Date(val).toISOString();
55271
+ val = this.createDate(val).toISOString();
55294
55272
  }
55295
55273
  return _super.prototype.valueForSurveyCore.call(this, val);
55296
55274
  };
55297
55275
  QuestionTextModel.prototype.valueFromDataCore = function (val) {
55298
55276
  if (this.hasToConvertToUTC(val)) {
55299
- var d = new Date(val);
55300
- var locale_d = new Date(d.getTime() - d.getTimezoneOffset() * 60 * 1000);
55277
+ var d = this.createDate(val);
55278
+ var locale_d = this.createDate(d.getTime() - d.getTimezoneOffset() * 60 * 1000);
55301
55279
  var res = locale_d.toISOString();
55302
55280
  val = res.substring(0, res.length - 2);
55303
55281
  }
@@ -55390,7 +55368,7 @@ var question_text_QuestionTextModel = /** @class */ (function (_super) {
55390
55368
  QuestionTextModel.prototype.getCalculatedMinMax = function (minMax) {
55391
55369
  if (this.isValueEmpty(minMax))
55392
55370
  return minMax;
55393
- return this.isDateInputType ? new Date(minMax) : minMax;
55371
+ return this.isDateInputType ? this.createDate(minMax) : minMax;
55394
55372
  };
55395
55373
  QuestionTextModel.prototype.setRenderedMinMax = function (values, properties) {
55396
55374
  var _this = this;
@@ -55484,7 +55462,7 @@ var question_text_QuestionTextModel = /** @class */ (function (_super) {
55484
55462
  return helpers_Helpers.isNumber(newValue) ? helpers_Helpers.getNumber(newValue) : "";
55485
55463
  }
55486
55464
  if (this.inputType === "month") {
55487
- var d = new Date(newValue);
55465
+ var d = this.createDate(newValue);
55488
55466
  var isUtc = d.toISOString().indexOf(newValue) == 0 && newValue.indexOf("T") == -1;
55489
55467
  var month = isUtc ? d.getUTCMonth() : d.getMonth();
55490
55468
  var year = isUtc ? d.getUTCFullYear() : d.getFullYear();
@@ -55551,6 +55529,7 @@ var question_text_QuestionTextModel = /** @class */ (function (_super) {
55551
55529
  };
55552
55530
  QuestionTextModel.prototype.beforeDestroyQuestionElement = function (el) {
55553
55531
  this.deleteMaskAdapter();
55532
+ this.input = undefined;
55554
55533
  };
55555
55534
  question_text_decorate([
55556
55535
  jsonobject_property({
@@ -55604,8 +55583,9 @@ function getCorrectMinMax(obj, min, max, isMax) {
55604
55583
  return val;
55605
55584
  if (obj.inputType.indexOf("date") === 0 || obj.inputType === "month") {
55606
55585
  var isMonth = obj.inputType === "month";
55607
- var dMin = new Date(isMonth ? min + "-01" : min);
55608
- var dMax = new Date(isMonth ? max + "-01" : max);
55586
+ var reason = "question-text-minmax";
55587
+ var dMin = createDate(reason, isMonth ? min + "-01" : min);
55588
+ var dMax = createDate(reason, isMonth ? max + "-01" : max);
55609
55589
  if (!dMin || !dMax)
55610
55590
  return val;
55611
55591
  if (dMin > dMax)
@@ -57597,6 +57577,16 @@ var question_checkbox_QuestionCheckboxModel = /** @class */ (function (_super) {
57597
57577
  }
57598
57578
  return false;
57599
57579
  };
57580
+ QuestionCheckboxModel.prototype.hasUnknownValueItem = function (val, includeOther, isFilteredChoices, checkEmptyValue) {
57581
+ if (includeOther === void 0) { includeOther = false; }
57582
+ if (isFilteredChoices === void 0) { isFilteredChoices = true; }
57583
+ if (checkEmptyValue === void 0) { checkEmptyValue = false; }
57584
+ var propName = this.valuePropertyName;
57585
+ if (!!propName && typeof val === "object" && val[propName] !== undefined) {
57586
+ val = val[propName];
57587
+ }
57588
+ return _super.prototype.hasUnknownValueItem.call(this, val, includeOther, isFilteredChoices, checkEmptyValue);
57589
+ };
57600
57590
  QuestionCheckboxModel.prototype.convertFuncValuetoQuestionValue = function (val) {
57601
57591
  var _this = this;
57602
57592
  if (!!this.valuePropertyName && Array.isArray(val) && val.length > 0) {
@@ -57847,11 +57837,23 @@ var question_checkbox_QuestionCheckboxModel = /** @class */ (function (_super) {
57847
57837
  return "";
57848
57838
  return newValue[ind];
57849
57839
  };
57840
+ QuestionCheckboxModel.prototype.getStoreOthersAsComment = function () {
57841
+ if (!!this.valuePropertyName)
57842
+ return false;
57843
+ return _super.prototype.getStoreOthersAsComment.call(this);
57844
+ };
57850
57845
  QuestionCheckboxModel.prototype.setOtherValueIntoValue = function (newValue) {
57851
57846
  var ind = this.getFirstUnknownIndex(newValue);
57852
57847
  if (ind < 0)
57853
57848
  return newValue;
57854
- newValue.splice(ind, 1, this.otherItem.value);
57849
+ var otherVal = this.otherItem.value;
57850
+ var propName = this.valuePropertyName;
57851
+ if (propName) {
57852
+ var obj = {};
57853
+ obj[propName] = otherVal;
57854
+ otherVal = obj;
57855
+ }
57856
+ newValue.splice(ind, 1, otherVal);
57855
57857
  return newValue;
57856
57858
  };
57857
57859
  QuestionCheckboxModel.prototype.getFirstUnknownIndex = function (newValue) {
@@ -58670,9 +58672,11 @@ var question_tagbox_QuestionTagboxModel = /** @class */ (function (_super) {
58670
58672
  this.onOpened.fire(this, { question: this, choices: this.choices });
58671
58673
  };
58672
58674
  QuestionTagboxModel.prototype.hasUnknownValue = function (val, includeOther, isFilteredChoices, checkEmptyValue) {
58673
- if (this.choicesLazyLoadEnabled) {
58675
+ if (includeOther === void 0) { includeOther = false; }
58676
+ if (isFilteredChoices === void 0) { isFilteredChoices = true; }
58677
+ if (checkEmptyValue === void 0) { checkEmptyValue = false; }
58678
+ if (this.choicesLazyLoadEnabled)
58674
58679
  return false;
58675
- }
58676
58680
  return _super.prototype.hasUnknownValue.call(this, val, includeOther, isFilteredChoices, checkEmptyValue);
58677
58681
  };
58678
58682
  QuestionTagboxModel.prototype.needConvertRenderedOtherToDataValue = function () {
@@ -60379,6 +60383,8 @@ questionfactory_QuestionFactory.Instance.registerQuestion("comment", function (n
60379
60383
 
60380
60384
  // CONCATENATED MODULE: ./packages/survey-core/src/utils/camera.ts
60381
60385
 
60386
+ var envStr = "environment";
60387
+ var userStr = "user";
60382
60388
  var camera_Camera = /** @class */ (function () {
60383
60389
  function Camera() {
60384
60390
  this.canFlipValue = undefined;
@@ -60390,10 +60396,14 @@ var camera_Camera = /** @class */ (function () {
60390
60396
  Camera.setCameraList = function (list) {
60391
60397
  var getDeviceType = function (device) {
60392
60398
  var lbl = device.label.toLocaleLowerCase();
60393
- if (lbl.indexOf("user") > -1)
60394
- return "user";
60395
- if (lbl.indexOf("enviroment") > -1)
60396
- return "enviroment";
60399
+ if (lbl.indexOf(userStr) > -1)
60400
+ return userStr;
60401
+ if (lbl.indexOf(envStr) > -1)
60402
+ return envStr;
60403
+ if (lbl.indexOf("front") > -1)
60404
+ return userStr;
60405
+ if (lbl.indexOf("back") > -1)
60406
+ return envStr;
60397
60407
  return "";
60398
60408
  };
60399
60409
  Camera.clear();
@@ -60406,13 +60416,13 @@ var camera_Camera = /** @class */ (function () {
60406
60416
  var lblA = getDeviceType(a);
60407
60417
  var lblB = getDeviceType(b);
60408
60418
  if (lblA !== lblB) {
60409
- if (lblA === "user")
60419
+ if (lblA === userStr)
60410
60420
  return -1;
60411
- if (lblB === "user")
60421
+ if (lblB === userStr)
60412
60422
  return 1;
60413
- if (lblA === "enviroment")
60423
+ if (lblA === envStr)
60414
60424
  return -1;
60415
- if (lblB === "enviroment")
60425
+ if (lblB === envStr)
60416
60426
  return 1;
60417
60427
  }
60418
60428
  }
@@ -60550,7 +60560,7 @@ var camera_Camera = /** @class */ (function () {
60550
60560
  if (!this.canFlip())
60551
60561
  return;
60552
60562
  if (Camera.canSwitchFacingMode) {
60553
- Camera.cameraFacingMode = Camera.cameraFacingMode === "user" ? "environment" : "user";
60563
+ Camera.cameraFacingMode = Camera.cameraFacingMode === userStr ? "environment" : userStr;
60554
60564
  }
60555
60565
  else if (Camera.cameraIndex >= Camera.cameraList.length - 1) {
60556
60566
  Camera.cameraIndex = 0;
@@ -60572,7 +60582,7 @@ var camera_Camera = /** @class */ (function () {
60572
60582
  Camera.setCameraList(list.length > 0 ? list : null);
60573
60583
  };
60574
60584
  Camera.cameraIndex = -1;
60575
- Camera.cameraFacingMode = "user";
60585
+ Camera.cameraFacingMode = userStr;
60576
60586
  Camera.canSwitchFacingMode = false;
60577
60587
  return Camera;
60578
60588
  }());
@@ -62504,7 +62514,7 @@ var question_rating_QuestionRatingModel = /** @class */ (function (_super) {
62504
62514
  }
62505
62515
  else {
62506
62516
  for (var i = _this.rateValues.length; i < _this.rateCount; i++) {
62507
- _this.rateValues.push(new itemvalue_ItemValue(surveyLocalization.getString("choices_Item") + (i + 1)));
62517
+ _this.rateValues.push(new itemvalue_ItemValue(getLocaleString("choices_Item") + (i + 1)));
62508
62518
  }
62509
62519
  }
62510
62520
  }
@@ -63376,7 +63386,7 @@ Serializer.addClass("rating", [
63376
63386
  {
63377
63387
  name: "rateValues:itemvalue[]",
63378
63388
  baseValue: function () {
63379
- return surveyLocalization.getString("choices_Item");
63389
+ return getLocaleString("choices_Item");
63380
63390
  },
63381
63391
  category: "rateValues",
63382
63392
  visibleIf: function (obj) {
@@ -65428,6 +65438,7 @@ var question_signaturepad_decorate = (undefined && undefined.__decorate) || func
65428
65438
 
65429
65439
 
65430
65440
 
65441
+
65431
65442
  var defaultWidth = 300;
65432
65443
  var defaultHeight = 200;
65433
65444
  /**
@@ -65484,7 +65495,8 @@ var question_signaturepad_QuestionSignaturePadModel = /** @class */ (function (_
65484
65495
  };
65485
65496
  QuestionSignaturePadModel.prototype.afterRenderQuestionElement = function (el) {
65486
65497
  if (!!el) {
65487
- this.initSignaturePad(el);
65498
+ if (!this.isDesignMode)
65499
+ this.initSignaturePad(el);
65488
65500
  this.element = el;
65489
65501
  }
65490
65502
  _super.prototype.afterRenderQuestionElement.call(this, el);
@@ -65533,9 +65545,12 @@ var question_signaturepad_QuestionSignaturePadModel = /** @class */ (function (_
65533
65545
  img_1.src = url;
65534
65546
  img_1.onload = function () {
65535
65547
  if (!!_this.canvas) {
65536
- var ctx = _this.canvas.getContext("2d");
65548
+ var canvas = DomDocumentHelper.createElement("canvas");
65549
+ canvas.width = _this.containerWidth;
65550
+ canvas.height = _this.containerHeight;
65551
+ var ctx = canvas.getContext("2d");
65537
65552
  ctx.drawImage(img_1, 0, 0);
65538
- var dataURL = _this.canvas.toDataURL(_this.getFormat());
65553
+ var dataURL = canvas.toDataURL(_this.getFormat());
65539
65554
  _this.fromDataUrl(dataURL);
65540
65555
  }
65541
65556
  _this.isFileLoading = false;
@@ -65988,8 +66003,8 @@ Serializer.addClass("signaturepad", [
65988
66003
  default: "png",
65989
66004
  choices: [
65990
66005
  { value: "png", text: "PNG" },
65991
- { value: "image/jpeg", text: "JPEG" },
65992
- { value: "image/svg+xml", text: "SVG" },
66006
+ { value: "jpeg", text: "JPEG" },
66007
+ { value: "svg", text: "SVG" },
65993
66008
  ],
65994
66009
  onSettingValue: function (obj, val) {
65995
66010
  return correctFormatData(val);
@@ -70330,12 +70345,12 @@ function createPopupModalViewModel(options, rootElement) {
70330
70345
  popupViewModel.onVisibilityChanged.add(onVisibilityChangedCallback);
70331
70346
  return popupViewModel;
70332
70347
  }
70333
- function createPopupViewModel(model, targetElement) {
70348
+ function createPopupViewModel(model) {
70334
70349
  if (model.isModal) {
70335
70350
  return new PopupModalViewModel(model);
70336
70351
  }
70337
70352
  else {
70338
- return new popup_dropdown_view_model_PopupDropdownViewModel(model, targetElement);
70353
+ return new popup_dropdown_view_model_PopupDropdownViewModel(model);
70339
70354
  }
70340
70355
  }
70341
70356
 
@@ -71215,20 +71230,6 @@ function trimDatePart(lexem, data) {
71215
71230
  }
71216
71231
  return result;
71217
71232
  }
71218
- function getDefaultYearForValidation(minYear, maxYear) {
71219
- var defaultVal = 2000;
71220
- if (defaultVal > maxYear) {
71221
- defaultVal = parseInt(maxYear.toString().slice(0, maxYear.toString().length - 2)) * 100;
71222
- }
71223
- if (defaultVal < minYear) {
71224
- var middle = (maxYear - minYear) / 2 + minYear;
71225
- defaultVal = parseInt(middle.toString().slice(0, middle.toString().length - 1)) * 10;
71226
- }
71227
- if (defaultVal >= minYear && defaultVal <= maxYear) {
71228
- return defaultVal;
71229
- }
71230
- return minYear;
71231
- }
71232
71233
  function getDateTimeLexems(pattern) {
71233
71234
  var result = [];
71234
71235
  var prevLexemType;
@@ -71473,9 +71474,18 @@ var mask_datetime_InputMaskDateTime = /** @class */ (function (_super) {
71473
71474
  return dateTime.year >= parseInt(minYearPart) && dateTime.year <= parseInt(maxYearPart);
71474
71475
  };
71475
71476
  InputMaskDateTime.prototype.createIDateTimeCompositionWithDefaults = function (dateTime, isUpperLimit) {
71476
- var min = dateTime.min;
71477
- var max = dateTime.max;
71478
- var year = dateTime.year !== undefined ? dateTime.year : getDefaultYearForValidation(min.getFullYear(), max.getFullYear());
71477
+ var checkOnlyLeapYears = dateTime.day == 29 && dateTime.month == 2;
71478
+ var minYear = dateTime.min.getFullYear();
71479
+ var maxYear = dateTime.max.getFullYear();
71480
+ if (checkOnlyLeapYears) {
71481
+ minYear = Math.ceil(minYear / 4) * 4;
71482
+ maxYear = Math.floor(minYear / 4) * 4;
71483
+ if (minYear > maxYear) {
71484
+ minYear = undefined;
71485
+ maxYear = undefined;
71486
+ }
71487
+ }
71488
+ var year = dateTime.year !== undefined ? dateTime.year : isUpperLimit ? maxYear : minYear;
71479
71489
  var month = dateTime.month !== undefined ? dateTime.month : (isUpperLimit && this.hasDatePart ? 12 : 1);
71480
71490
  var day = dateTime.day !== undefined ? dateTime.day : (isUpperLimit && this.hasDatePart ? this.getMaxDateForMonth(year, month) : 1);
71481
71491
  var hour = dateTime.hour !== undefined ? dateTime.hour : (isUpperLimit ? 23 : 0);
@@ -71489,18 +71499,12 @@ var mask_datetime_InputMaskDateTime = /** @class */ (function (_super) {
71489
71499
  return [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month - 1];
71490
71500
  };
71491
71501
  InputMaskDateTime.prototype.isDateValid = function (dateTime) {
71492
- var min = dateTime.min;
71493
- var max = dateTime.max;
71494
- var year = dateTime.year !== undefined ? dateTime.year : getDefaultYearForValidation(min.getFullYear(), max.getFullYear());
71495
- var month = dateTime.month !== undefined ? dateTime.month : 1;
71496
- var day = dateTime.day !== undefined ? dateTime.day : 1;
71497
- var monthIndex = month - 1;
71498
71502
  var date = new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(dateTime, false)));
71499
71503
  var dateH = new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(dateTime, true)));
71500
71504
  return !isNaN(date) &&
71501
- date.getDate() === day &&
71502
- date.getMonth() === monthIndex &&
71503
- date.getFullYear() === year &&
71505
+ (date.getDate() === dateTime.day || dateTime.day === undefined) &&
71506
+ (date.getMonth() === dateTime.month - 1 || dateTime.month === undefined) &&
71507
+ (date.getFullYear() === dateTime.year || dateTime.year === undefined) &&
71504
71508
  dateH >= dateTime.min && date <= dateTime.max;
71505
71509
  };
71506
71510
  InputMaskDateTime.prototype.getPlaceholder = function (lexemLength, str, char) {
@@ -71556,7 +71560,7 @@ var mask_datetime_InputMaskDateTime = /** @class */ (function (_super) {
71556
71560
  return;
71557
71561
  var propertyName = newItem.lexem.type;
71558
71562
  var tempDateTime = mask_datetime_assign({}, dateTime);
71559
- tempDateTime[propertyName] = parseInt(data);
71563
+ tempDateTime[propertyName] = parseInt(this.parseTwoDigitYear(newItem));
71560
71564
  if (data.length === newItem.lexem.maxCount) {
71561
71565
  if (this.isDateValid12(tempDateTime)) {
71562
71566
  newItem.isCompleted = true;
@@ -71991,8 +71995,8 @@ Serializer.addClass("currencymask", [
71991
71995
 
71992
71996
  var Version;
71993
71997
  var ReleaseDate;
71994
- Version = "" + "1.12.10";
71995
- ReleaseDate = "" + "2024-11-13";
71998
+ Version = "" + "1.12.12";
71999
+ ReleaseDate = "" + "2024-11-26";
71996
72000
  function checkLibraryVersion(ver, libraryName) {
71997
72001
  if (Version != ver) {
71998
72002
  var str = "survey-core has version '" + Version + "' and " + libraryName
@@ -73430,6 +73434,96 @@ var modernCss = {
73430
73434
  };
73431
73435
  surveyCss["modern"] = modernCss;
73432
73436
 
73437
+ // CONCATENATED MODULE: ./packages/survey-core/src/svgbundle.ts
73438
+
73439
+
73440
+
73441
+ var svgbundle_SvgIconRegistry = /** @class */ (function () {
73442
+ function SvgIconRegistry() {
73443
+ this.icons = {};
73444
+ this.iconPrefix = "icon-";
73445
+ this.onIconsChanged = new EventBase();
73446
+ }
73447
+ SvgIconRegistry.prototype.processId = function (iconId, iconPrefix) {
73448
+ if (iconId.indexOf(iconPrefix) == 0) {
73449
+ iconId = iconId.substring(iconPrefix.length);
73450
+ }
73451
+ iconId = renamedIcons[iconId] || iconId;
73452
+ return iconId;
73453
+ };
73454
+ SvgIconRegistry.prototype.registerIconFromSymbol = function (iconId, iconSymbolSvg) {
73455
+ this.icons[iconId] = iconSymbolSvg;
73456
+ };
73457
+ SvgIconRegistry.prototype.registerIconFromSvgViaElement = function (iconId, iconSvg, iconPrefix) {
73458
+ if (iconPrefix === void 0) { iconPrefix = this.iconPrefix; }
73459
+ if (!DomDocumentHelper.isAvailable())
73460
+ return;
73461
+ iconId = this.processId(iconId, iconPrefix);
73462
+ var divSvg = DomDocumentHelper.createElement("div");
73463
+ divSvg.innerHTML = iconSvg;
73464
+ var symbol = DomDocumentHelper.createElement("symbol");
73465
+ var svg = divSvg.querySelector("svg");
73466
+ symbol.innerHTML = svg.innerHTML;
73467
+ for (var i = 0; i < svg.attributes.length; i++) {
73468
+ symbol.setAttributeNS("http://www.w3.org/2000/svg", svg.attributes[i].name, svg.attributes[i].value);
73469
+ }
73470
+ symbol.id = iconPrefix + iconId;
73471
+ this.registerIconFromSymbol(iconId, symbol.outerHTML);
73472
+ };
73473
+ SvgIconRegistry.prototype.registerIconFromSvg = function (iconId, iconSvg, iconPrefix) {
73474
+ if (iconPrefix === void 0) { iconPrefix = this.iconPrefix; }
73475
+ iconId = this.processId(iconId, iconPrefix);
73476
+ var startStr = "<svg ";
73477
+ var endStr = "</svg>";
73478
+ iconSvg = iconSvg.trim();
73479
+ var str = iconSvg.toLowerCase();
73480
+ if (str.substring(0, startStr.length) === startStr &&
73481
+ str.substring(str.length - endStr.length, str.length) === endStr) {
73482
+ this.registerIconFromSymbol(iconId, "<symbol " +
73483
+ "id=\"" + iconPrefix + iconId + "\" " +
73484
+ iconSvg.substring(startStr.length, str.length - endStr.length) +
73485
+ "</symbol>");
73486
+ return true;
73487
+ }
73488
+ else {
73489
+ return false;
73490
+ }
73491
+ };
73492
+ // TODO: remove in V2
73493
+ SvgIconRegistry.prototype.registerIconsFromFolder = function (r) {
73494
+ var _this = this;
73495
+ r.keys().forEach(function (key) {
73496
+ _this.registerIconFromSvg(key.substring(2, key.length - 4).toLowerCase(), r(key));
73497
+ });
73498
+ };
73499
+ SvgIconRegistry.prototype.registerIcons = function (icons) {
73500
+ for (var iconId in icons) {
73501
+ this.registerIconFromSvg(iconId, icons[iconId]);
73502
+ }
73503
+ this.updateMarkup();
73504
+ };
73505
+ SvgIconRegistry.prototype.iconsRenderedHtml = function () {
73506
+ var _this = this;
73507
+ return Object.keys(this.icons).map(function (icon) { return _this.icons[icon]; }).join("");
73508
+ };
73509
+ SvgIconRegistry.prototype.updateMarkup = function () {
73510
+ this.onIconsChanged.fire(this, {});
73511
+ };
73512
+ return SvgIconRegistry;
73513
+ }());
73514
+
73515
+ var SvgRegistry = new svgbundle_SvgIconRegistry();
73516
+ var SvgThemeSets = {};
73517
+ function addIconsToThemeSet(name, iconsData) {
73518
+ if (!SvgThemeSets[name]) {
73519
+ SvgThemeSets[name] = {};
73520
+ }
73521
+ var set = SvgThemeSets[name];
73522
+ for (var iconId in iconsData) {
73523
+ set[iconId] = iconsData[iconId];
73524
+ }
73525
+ }
73526
+
73433
73527
  // CONCATENATED MODULE: ./packages/survey-core/entries/chunks/core-wo-model.ts
73434
73528
  // model
73435
73529
 
@@ -74869,7 +74963,7 @@ var arabicSurveyStrings = {
74869
74963
  ok: "موافق",
74870
74964
  cancel: "إلغاء الأمر"
74871
74965
  };
74872
- surveyLocalization.setupLocale("ar", arabicSurveyStrings, "العربية", "Arabic", "rtl");
74966
+ setupLocale({ localeCode: "ar", strings: arabicSurveyStrings, nativeName: "العربية", englishName: "Arabic", rtl: true });
74873
74967
  // The following strings have been translated by a machine translation service
74874
74968
  // Remove those strings that you have corrected manually
74875
74969
  // indexText: "{0} of {1}" => "{0} من {1}"
@@ -75015,7 +75109,7 @@ var basqueSurveyStrings = {
75015
75109
  ok: "Ados",
75016
75110
  cancel: "Ezeztatu"
75017
75111
  };
75018
- surveyLocalization.setupLocale("eu", basqueSurveyStrings, "euskara", "Basque");
75112
+ setupLocale({ localeCode: "eu", strings: basqueSurveyStrings, nativeName: "euskara", englishName: "Basque" });
75019
75113
  // The following strings have been translated by a machine translation service
75020
75114
  // Remove those strings that you have corrected manually
75021
75115
  // indexText: "{0} of {1}" => "{1} {0}"
@@ -75154,7 +75248,7 @@ var bulgarianStrings = {
75154
75248
  ok: "Добре",
75155
75249
  cancel: "Отмени"
75156
75250
  };
75157
- surveyLocalization.setupLocale("bg", bulgarianStrings, "български", "Bulgarian");
75251
+ setupLocale({ localeCode: "bg", strings: bulgarianStrings, nativeName: "български", englishName: "Bulgarian" });
75158
75252
  // The following strings have been translated by a machine translation service
75159
75253
  // Remove those strings that you have corrected manually
75160
75254
  // indexText: "{0} of {1}" => "{0} на {1}"
@@ -75300,7 +75394,7 @@ var catalanSurveyStrings = {
75300
75394
  ok: "D'ACORD",
75301
75395
  cancel: "Cancel·lar"
75302
75396
  };
75303
- surveyLocalization.setupLocale("ca", catalanSurveyStrings, "català", "Catalan");
75397
+ setupLocale({ localeCode: "ca", strings: catalanSurveyStrings, nativeName: "català", englishName: "Catalan" });
75304
75398
  // The following strings have been translated by a machine translation service
75305
75399
  // Remove those strings that you have corrected manually
75306
75400
  // previewText: "Preview" => "Preestrena"
@@ -75486,7 +75580,7 @@ var croatianStrings = {
75486
75580
  ok: "OK",
75487
75581
  cancel: "Otkazati"
75488
75582
  };
75489
- surveyLocalization.setupLocale("hr", croatianStrings, "hrvatski", "Croatian");
75583
+ setupLocale({ localeCode: "hr", strings: croatianStrings, nativeName: "hrvatski", englishName: "Croatian" });
75490
75584
  // The following strings have been translated by a machine translation service
75491
75585
  // Remove those strings that you have corrected manually
75492
75586
  // indexText: "{0} of {1}" => "{0} {1}"
@@ -75630,7 +75724,7 @@ var czechSurveyStrings = {
75630
75724
  ok: "OK",
75631
75725
  cancel: "Zrušit"
75632
75726
  };
75633
- surveyLocalization.setupLocale("cs", czechSurveyStrings, "čeština", "Czech");
75727
+ setupLocale({ localeCode: "cs", strings: czechSurveyStrings, nativeName: "čeština", englishName: "Czech" });
75634
75728
  // The following strings have been translated by a machine translation service
75635
75729
  // Remove those strings that you have corrected manually
75636
75730
  // indexText: "{0} of {1}" => "{0} z {1}"
@@ -75776,7 +75870,7 @@ var danishSurveyStrings = {
75776
75870
  ok: "OK",
75777
75871
  cancel: "Aflyse"
75778
75872
  };
75779
- surveyLocalization.setupLocale("da", danishSurveyStrings, "dansk", "Danish");
75873
+ setupLocale({ localeCode: "da", strings: danishSurveyStrings, nativeName: "dansk", englishName: "Danish" });
75780
75874
  // The following strings have been translated by a machine translation service
75781
75875
  // Remove those strings that you have corrected manually
75782
75876
  // indexText: "{0} of {1}" => "{0} af {1}"
@@ -75922,7 +76016,7 @@ var dutchSurveyStrings = {
75922
76016
  ok: "OK",
75923
76017
  cancel: "Annuleren"
75924
76018
  };
75925
- surveyLocalization.setupLocale("nl", dutchSurveyStrings, "nederlands", "Dutch");
76019
+ setupLocale({ localeCode: "nl", strings: dutchSurveyStrings, nativeName: "nederlands", englishName: "Dutch" });
75926
76020
  // The following strings have been translated by a machine translation service
75927
76021
  // Remove those strings that you have corrected manually
75928
76022
  // indexText: "{0} of {1}" => "{0} van {1}"
@@ -75963,7 +76057,7 @@ surveyLocalization.setupLocale("nl", dutchSurveyStrings, "nederlands", "Dutch");
75963
76057
  * - Copy the Dutch set once and move forward as if it are 2 totally different languages
75964
76058
  * - Override the relevant strings only
75965
76059
  */
75966
- surveyLocalization.setupLocale("nl-BE", dutchSurveyStrings, "vlaams", "Flemish");
76060
+ setupLocale({ localeCode: "nl-BE", strings: dutchSurveyStrings, nativeName: "vlaams", englishName: "Flemish" });
75967
76061
 
75968
76062
  // CONCATENATED MODULE: ./packages/survey-core/src/localization/estonian.ts
75969
76063
 
@@ -76076,7 +76170,7 @@ var estonianSurveyStrings = {
76076
76170
  ok: "OK",
76077
76171
  cancel: "Tühistama"
76078
76172
  };
76079
- surveyLocalization.setupLocale("et", estonianSurveyStrings, "eesti keel", "Estonian");
76173
+ setupLocale({ localeCode: "et", strings: estonianSurveyStrings, nativeName: "eesti keel", englishName: "Estonian" });
76080
76174
  // The following strings have been translated by a machine translation service
76081
76175
  // Remove those strings that you have corrected manually
76082
76176
  // indexText: "{0} of {1}" => "{0} {1}"
@@ -76222,7 +76316,7 @@ var finnishSurveyStrings = {
76222
76316
  ok: "OKEI",
76223
76317
  cancel: "Perua"
76224
76318
  };
76225
- surveyLocalization.setupLocale("fi", finnishSurveyStrings, "suomi", "Finnish");
76319
+ setupLocale({ localeCode: "fi", strings: finnishSurveyStrings, nativeName: "suomi", englishName: "Finnish" });
76226
76320
  // The following strings have been translated by a machine translation service
76227
76321
  // Remove those strings that you have corrected manually
76228
76322
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "Paneeli {panelIndex}"
@@ -76356,7 +76450,7 @@ var frenchSurveyStrings = {
76356
76450
  ok: "D’ACCORD",
76357
76451
  cancel: "Annuler"
76358
76452
  };
76359
- surveyLocalization.setupLocale("fr", frenchSurveyStrings, "français", "French");
76453
+ setupLocale({ localeCode: "fr", strings: frenchSurveyStrings, nativeName: "français", englishName: "French" });
76360
76454
  // The following strings have been translated by a machine translation service
76361
76455
  // Remove those strings that you have corrected manually
76362
76456
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "Panel {panelIndex}"
@@ -76490,7 +76584,7 @@ var georgianSurveyStrings = {
76490
76584
  ok: "კარგი",
76491
76585
  cancel: "გაუქმება"
76492
76586
  };
76493
- surveyLocalization.setupLocale("ka", georgianSurveyStrings, "ქართული", "Georgian");
76587
+ setupLocale({ localeCode: "ka", strings: georgianSurveyStrings, nativeName: "ქართული", englishName: "Georgian" });
76494
76588
  // The following strings have been translated by a machine translation service
76495
76589
  // Remove those strings that you have corrected manually
76496
76590
  // previewText: "Preview" => "გადახედვა"
@@ -76689,7 +76783,7 @@ var germanSurveyStrings = {
76689
76783
  ok: "OK",
76690
76784
  cancel: "Abbrechen"
76691
76785
  };
76692
- surveyLocalization.setupLocale("de", germanSurveyStrings, "deutsch", "German");
76786
+ setupLocale({ localeCode: "de", strings: germanSurveyStrings, nativeName: "deutsch", englishName: "German" });
76693
76787
  // The following strings have been translated by a machine translation service
76694
76788
  // Remove those strings that you have corrected manually
76695
76789
  // tabTitlePlaceholder: "New Panel" => "Neues Panel"// deselectAllItemText: "Deselect all" => "Alle abwählen"
@@ -76806,7 +76900,7 @@ var greekSurveyStrings = {
76806
76900
  ok: "OK",
76807
76901
  cancel: "Ακυρώνω"
76808
76902
  };
76809
- surveyLocalization.setupLocale("gr", greekSurveyStrings, "ελληνικά", "Greek");
76903
+ setupLocale({ localeCode: "gr", strings: greekSurveyStrings, nativeName: "ελληνικά", englishName: "Greek" });
76810
76904
  // The following strings have been translated by a machine translation service
76811
76905
  // Remove those strings that you have corrected manually
76812
76906
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "Πίνακας {panelIndex}"
@@ -76937,7 +77031,7 @@ var hebrewSurveyStrings = {
76937
77031
  ok: "אוקיי",
76938
77032
  cancel: "ביטל"
76939
77033
  };
76940
- surveyLocalization.setupLocale("he", hebrewSurveyStrings, "עברית", "Hebrew");
77034
+ setupLocale({ localeCode: "he", strings: hebrewSurveyStrings, nativeName: "עברית", englishName: "Hebrew", rtl: true });
76941
77035
  // The following strings have been translated by a machine translation service
76942
77036
  // Remove those strings that you have corrected manually
76943
77037
  // indexText: "{0} of {1}" => "{0} מתוך {1}"
@@ -77084,7 +77178,7 @@ var hindiStrings = {
77084
77178
  ok: "ठीक है",
77085
77179
  cancel: "रद्द करना"
77086
77180
  };
77087
- surveyLocalization.setupLocale("hi", hindiStrings, "hindi", "Hindi");
77181
+ setupLocale({ localeCode: "hi", strings: hindiStrings, nativeName: "hindi", englishName: "Hindi" });
77088
77182
  // The following strings have been translated by a machine translation service
77089
77183
  // Remove those strings that you have corrected manually
77090
77184
  // noneItemText: "None" => "कोई नहीं"
@@ -77230,7 +77324,7 @@ var hungarianSurveyStrings = {
77230
77324
  ok: "OKÉ",
77231
77325
  cancel: "Érvénytelenít"
77232
77326
  };
77233
- surveyLocalization.setupLocale("hu", hungarianSurveyStrings, "magyar", "Hungarian");
77327
+ setupLocale({ localeCode: "hu", strings: hungarianSurveyStrings, nativeName: "magyar", englishName: "Hungarian" });
77234
77328
  // The following strings have been translated by a machine translation service
77235
77329
  // Remove those strings that you have corrected manually
77236
77330
  // indexText: "{0} of {1}" => "{0} {1} közül"
@@ -77375,7 +77469,7 @@ var icelandicSurveyStrings = {
77375
77469
  ok: "ÓKEI",
77376
77470
  cancel: "Afturkalla"
77377
77471
  };
77378
- surveyLocalization.setupLocale("is", icelandicSurveyStrings, "íslenska", "Icelandic");
77472
+ setupLocale({ localeCode: "is", strings: icelandicSurveyStrings, nativeName: "íslenska", englishName: "Icelandic" });
77379
77473
  // The following strings have been translated by a machine translation service
77380
77474
  // Remove those strings that you have corrected manually
77381
77475
  // indexText: "{0} of {1}" => "{0} af {1}"
@@ -77521,7 +77615,7 @@ var indonesianStrings = {
77521
77615
  ok: "OKE",
77522
77616
  cancel: "Membatalkan"
77523
77617
  };
77524
- surveyLocalization.setupLocale("id", indonesianStrings, "bahasa indonesia", "Indonesian");
77618
+ setupLocale({ localeCode: "id", strings: indonesianStrings, nativeName: "bahasa indonesia", englishName: "Indonesian" });
77525
77619
  // The following strings have been translated by a machine translation service
77526
77620
  // Remove those strings that you have corrected manually
77527
77621
  // indexText: "{0} of {1}" => "{0} dari {1}"
@@ -77667,7 +77761,7 @@ var italianSurveyStrings = {
77667
77761
  ok: "OK",
77668
77762
  cancel: "Annulla"
77669
77763
  };
77670
- surveyLocalization.setupLocale("it", italianSurveyStrings, "italiano", "Italian");
77764
+ setupLocale({ localeCode: "it", strings: italianSurveyStrings, nativeName: "italiano", englishName: "Italian" });
77671
77765
  // The following strings have been translated by a machine translation service
77672
77766
  // Remove those strings that you have corrected manually
77673
77767
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "Pannello {panelIndex}"
@@ -77801,7 +77895,7 @@ var japaneseSurveyStrings = {
77801
77895
  ok: "わかりました",
77802
77896
  cancel: "キャンセル"
77803
77897
  };
77804
- surveyLocalization.setupLocale("ja", japaneseSurveyStrings, "日本語", "Japanese");
77898
+ setupLocale({ localeCode: "ja", strings: japaneseSurveyStrings, nativeName: "日本語", englishName: "Japanese" });
77805
77899
  // The following strings have been translated by a machine translation service
77806
77900
  // Remove those strings that you have corrected manually
77807
77901
  // indexText: "{0} of {1}" => "{1}の{0}"
@@ -77948,7 +78042,7 @@ var kazakhStrings = {
77948
78042
  ok: "ЖАҚСЫ",
77949
78043
  cancel: "Болдырмау"
77950
78044
  };
77951
- surveyLocalization.setupLocale("kk", kazakhStrings, "kazakh", "Kazakh");
78045
+ setupLocale({ localeCode: "kk", strings: kazakhStrings, nativeName: "kazakh", englishName: "Kazakh" });
77952
78046
  // The following strings have been translated by a machine translation service
77953
78047
  // Remove those strings that you have corrected manually
77954
78048
  // indexText: "{0} of {1}" => "{1} {0}"
@@ -78094,7 +78188,7 @@ var koreanStrings = {
78094
78188
  ok: "그래",
78095
78189
  cancel: "취소"
78096
78190
  };
78097
- surveyLocalization.setupLocale("ko", koreanStrings, "한국어", "Korean");
78191
+ setupLocale({ localeCode: "ko", strings: koreanStrings, nativeName: "한국어", englishName: "Korean" });
78098
78192
  // The following strings have been translated by a machine translation service
78099
78193
  // Remove those strings that you have corrected manually
78100
78194
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "패널 {panelIndex}"
@@ -78227,7 +78321,7 @@ var latvianSurveyStrings = {
78227
78321
  ok: "LABI",
78228
78322
  cancel: "Atcelt"
78229
78323
  };
78230
- surveyLocalization.setupLocale("lv", latvianSurveyStrings, "latviešu", "Latvian");
78324
+ setupLocale({ localeCode: "lv", strings: latvianSurveyStrings, nativeName: "latviešu", englishName: "Latvian" });
78231
78325
  // The following strings have been translated by a machine translation service
78232
78326
  // Remove those strings that you have corrected manually
78233
78327
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "Panelis {panelIndex}"
@@ -78361,7 +78455,7 @@ var lithuaniaSurveyStrings = {
78361
78455
  ok: "GERAI",
78362
78456
  cancel: "Atšaukti"
78363
78457
  };
78364
- surveyLocalization.setupLocale("lt", lithuaniaSurveyStrings, "lietuvių", "Lithuanian");
78458
+ setupLocale({ localeCode: "lt", strings: lithuaniaSurveyStrings, nativeName: "lietuvių", englishName: "Lithuanian" });
78365
78459
  // The following strings have been translated by a machine translation service
78366
78460
  // Remove those strings that you have corrected manually
78367
78461
  // indexText: "{0} of {1}" => "{1} {0}"
@@ -78507,7 +78601,7 @@ var macedonianSurveyStrings = {
78507
78601
  ok: "ДОБРО",
78508
78602
  cancel: "Откажи"
78509
78603
  };
78510
- surveyLocalization.setupLocale("mk", macedonianSurveyStrings, "македонски", "Macedonian");
78604
+ setupLocale({ localeCode: "mk", strings: macedonianSurveyStrings, nativeName: "македонски", englishName: "Macedonian" });
78511
78605
  // The following strings have been translated by a machine translation service
78512
78606
  // Remove those strings that you have corrected manually
78513
78607
  // indexText: "{0} of {1}" => "{0} на {1}"
@@ -78647,7 +78741,7 @@ var malaySurveyStrings = {
78647
78741
  ok: "OK",
78648
78742
  cancel: "Batal"
78649
78743
  };
78650
- surveyLocalization.setupLocale("ms", malaySurveyStrings, "melayu", "Malay");
78744
+ setupLocale({ localeCode: "ms", strings: malaySurveyStrings, nativeName: "melayu", englishName: "Malay" });
78651
78745
  // The following strings have been translated by a machine translation service
78652
78746
  // Remove those strings that you have corrected manually
78653
78747
  // indexText: "{0} of {1}" => "{0} {1}"
@@ -78783,7 +78877,7 @@ var norwegianSurveyStrings = {
78783
78877
  ok: "OK",
78784
78878
  cancel: "Annullere"
78785
78879
  };
78786
- surveyLocalization.setupLocale("no", norwegianSurveyStrings, "norsk", "Norwegian");
78880
+ setupLocale({ localeCode: "no", strings: norwegianSurveyStrings, nativeName: "norsk", englishName: "Norwegian" });
78787
78881
  // The following strings have been translated by a machine translation service
78788
78882
  // Remove those strings that you have corrected manually
78789
78883
  // indexText: "{0} of {1}" => "{0} av {1}"
@@ -78929,7 +79023,7 @@ var persianSurveyStrings = {
78929
79023
  ok: "باشه",
78930
79024
  cancel: "لغو"
78931
79025
  };
78932
- surveyLocalization.setupLocale("fa", persianSurveyStrings, "فارْسِى", "Persian");
79026
+ setupLocale({ localeCode: "fa", strings: persianSurveyStrings, nativeName: "فارْسِى", englishName: "Persian", rtl: true });
78933
79027
  // The following strings have been translated by a machine translation service
78934
79028
  // Remove those strings that you have corrected manually
78935
79029
  // indexText: "{0} of {1}" => "{0} {1}"
@@ -79075,7 +79169,7 @@ var polishSurveyStrings = {
79075
79169
  ok: "OK",
79076
79170
  cancel: "Anuluj"
79077
79171
  };
79078
- surveyLocalization.setupLocale("pl", polishSurveyStrings, "polski", "Polish");
79172
+ setupLocale({ localeCode: "pl", strings: polishSurveyStrings, nativeName: "polski", englishName: "Polish" });
79079
79173
  // The following strings have been translated by a machine translation service
79080
79174
  // Remove those strings that you have corrected manually
79081
79175
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "Panel {panelIndex}"
@@ -79209,7 +79303,7 @@ var portugueseSurveyStrings = {
79209
79303
  ok: "OKEY",
79210
79304
  cancel: "Cancelar"
79211
79305
  };
79212
- surveyLocalization.setupLocale("pt", portugueseSurveyStrings, "português", "Portuguese");
79306
+ setupLocale({ localeCode: "pt", strings: portugueseSurveyStrings, nativeName: "português", englishName: "Portuguese" });
79213
79307
  // The following strings have been translated by a machine translation service
79214
79308
  // Remove those strings that you have corrected manually
79215
79309
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "Painel {panelIndex}"
@@ -79343,7 +79437,7 @@ var portugueseBrSurveyStrings = {
79343
79437
  ok: "OKEY",
79344
79438
  cancel: "Cancelar"
79345
79439
  };
79346
- surveyLocalization.setupLocale("pt-br", portugueseBrSurveyStrings, "português brasileiro", "Brazilian Portuguese");
79440
+ setupLocale({ localeCode: "pt-br", strings: portugueseBrSurveyStrings, nativeName: "português brasileiro", englishName: "Brazilian Portuguese" });
79347
79441
  // The following strings have been translated by a machine translation service
79348
79442
  // Remove those strings that you have corrected manually
79349
79443
  // pagePrevText: "Previous" => "Anterior"
@@ -79536,7 +79630,7 @@ var romanianSurveyStrings = {
79536
79630
  ok: "OK",
79537
79631
  cancel: "Anula"
79538
79632
  };
79539
- surveyLocalization.setupLocale("ro", romanianSurveyStrings, "română", "Romanian");
79633
+ setupLocale({ localeCode: "ro", strings: romanianSurveyStrings, nativeName: "română", englishName: "Romanian" });
79540
79634
  // The following strings have been translated by a machine translation service
79541
79635
  // Remove those strings that you have corrected manually
79542
79636
  // indexText: "{0} of {1}" => "{0} de {1}"
@@ -79682,7 +79776,7 @@ var russianSurveyStrings = {
79682
79776
  ok: "Хорошо",
79683
79777
  cancel: "Отмена"
79684
79778
  };
79685
- surveyLocalization.setupLocale("ru", russianSurveyStrings, "русский", "Russian");
79779
+ setupLocale({ localeCode: "ru", strings: russianSurveyStrings, nativeName: "русский", englishName: "Russian" });
79686
79780
  // The following strings have been translated by a machine translation service
79687
79781
  // Remove those strings that you have corrected manually
79688
79782
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "Панель {panelIndex}"
@@ -79812,8 +79906,7 @@ var serbianStrings = {
79812
79906
  ok: "U redu",
79813
79907
  cancel: "Otkaži"
79814
79908
  };
79815
- //Uncomment these two lines on creating a translation file. You should replace "en" and enStrings with your locale ("fr", "de" and so on) and your variable.
79816
- surveyLocalization.setupLocale("rs", serbianStrings, "srpski", "Serbian");
79909
+ setupLocale({ localeCode: "rs", strings: serbianStrings, nativeName: "srpski", englishName: "Serbian" });
79817
79910
  // The following strings have been translated by a machine translation service
79818
79911
  // Remove those strings that you have corrected manually
79819
79912
  // indexText: "{0} of {1}" => "{0} {1}"
@@ -79953,7 +80046,7 @@ var simplifiedChineseSurveyStrings = {
79953
80046
  ok: "还行",
79954
80047
  cancel: "取消"
79955
80048
  };
79956
- surveyLocalization.setupLocale("zh-cn", simplifiedChineseSurveyStrings, "简体中文", "Simplified Chinese ");
80049
+ setupLocale({ localeCode: "zh-cn", strings: simplifiedChineseSurveyStrings, nativeName: "简体中文", englishName: "Simplified Chinese" });
79957
80050
  // The following strings have been translated by a machine translation service
79958
80051
  // Remove those strings that you have corrected manually
79959
80052
  // indexText: "{0} of {1}" => "{1}{0}"
@@ -80093,7 +80186,7 @@ var slovakSurveyStrings = {
80093
80186
  ok: "OK",
80094
80187
  cancel: "Zrušiť"
80095
80188
  };
80096
- surveyLocalization.setupLocale("sk", slovakSurveyStrings, "slovak", "Slovak");
80189
+ setupLocale({ localeCode: "sk", strings: slovakSurveyStrings, nativeName: "slovak", englishName: "Slovak" });
80097
80190
  // The following strings have been translated by a machine translation service
80098
80191
  // Remove those strings that you have corrected manually
80099
80192
  // indexText: "{0} of {1}" => "{0} {1}"
@@ -80229,7 +80322,7 @@ var spanishSurveyStrings = {
80229
80322
  ok: "De acuerdo",
80230
80323
  cancel: "Cancelar"
80231
80324
  };
80232
- surveyLocalization.setupLocale("es", spanishSurveyStrings, "español", "Spanish");
80325
+ setupLocale({ localeCode: "es", strings: spanishSurveyStrings, nativeName: "español", englishName: "Spanish" });
80233
80326
  // The following strings have been translated by a machine translation service
80234
80327
  // Remove those strings that you have corrected manually
80235
80328
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "Panel {panelIndex}"
@@ -80363,7 +80456,7 @@ var swahiliStrings = {
80363
80456
  ok: "Sawa kabisa",
80364
80457
  cancel: "Katisha"
80365
80458
  };
80366
- surveyLocalization.setupLocale("sw", swahiliStrings, "swahili", "Swahili");
80459
+ setupLocale({ localeCode: "sw", strings: swahiliStrings, nativeName: "swahili", englishName: "Swahili" });
80367
80460
  // The following strings have been translated by a machine translation service
80368
80461
  // Remove those strings that you have corrected manually
80369
80462
  // indexText: "{0} of {1}" => "{0} ya {1}"
@@ -80509,7 +80602,7 @@ var swedishSurveyStrings = {
80509
80602
  ok: "OKEJ",
80510
80603
  cancel: "Annullera"
80511
80604
  };
80512
- surveyLocalization.setupLocale("sv", swedishSurveyStrings, "svenska", "Swedish");
80605
+ setupLocale({ localeCode: "sv", strings: swedishSurveyStrings, nativeName: "svenska", englishName: "Swedish" });
80513
80606
  // The following strings have been translated by a machine translation service
80514
80607
  // Remove those strings that you have corrected manually
80515
80608
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "Panel {panelIndex}"
@@ -80623,7 +80716,7 @@ var tajikSurveyStrings = {
80623
80716
  // noEntriesText: "There are no entries yet.\nClick the button below to add a new entry.",
80624
80717
  // more: "More"
80625
80718
  };
80626
- surveyLocalization.setupLocale("tg", tajikSurveyStrings, "тоҷикӣ", "Tajik");
80719
+ setupLocale({ localeCode: "tg", strings: tajikSurveyStrings, nativeName: "тоҷикӣ", englishName: "Tajik" });
80627
80720
 
80628
80721
  // CONCATENATED MODULE: ./packages/survey-core/src/localization/thai.ts
80629
80722
 
@@ -80736,7 +80829,7 @@ var thaiStrings = {
80736
80829
  ok: "ตกลง, ได้",
80737
80830
  cancel: "ยกเลิก"
80738
80831
  };
80739
- surveyLocalization.setupLocale("th", thaiStrings, "ไทย", "Thai");
80832
+ setupLocale({ localeCode: "th", strings: thaiStrings, nativeName: "ไทย", englishName: "Thai" });
80740
80833
  // The following strings have been translated by a machine translation service
80741
80834
  // Remove those strings that you have corrected manually
80742
80835
  // indexText: "{0} of {1}" => "{0} of {1}"
@@ -80881,7 +80974,7 @@ var traditionalChineseSurveyStrings = {
80881
80974
  ok: "還行",
80882
80975
  cancel: "取消"
80883
80976
  };
80884
- surveyLocalization.setupLocale("zh-tw", traditionalChineseSurveyStrings, "繁體中文", "Tranditional Chinese");
80977
+ setupLocale({ localeCode: "zh-tw", strings: traditionalChineseSurveyStrings, nativeName: "繁體中文", englishName: "Tranditional Chinese" });
80885
80978
  // The following strings have been translated by a machine translation service
80886
80979
  // Remove those strings that you have corrected manually
80887
80980
  // previewText: "Preview" => "預覽"
@@ -81061,7 +81154,7 @@ var turkishSurveyStrings = {
81061
81154
  ok: "TAMAM",
81062
81155
  cancel: "İptal"
81063
81156
  };
81064
- surveyLocalization.setupLocale("tr", turkishSurveyStrings, "türkçe", "Turkish");
81157
+ setupLocale({ localeCode: "tr", strings: turkishSurveyStrings, nativeName: "türkçe", englishName: "Turkish" });
81065
81158
  // The following strings have been translated by a machine translation service
81066
81159
  // Remove those strings that you have corrected manually
81067
81160
  // takePhotoCaption: "Take Photo" => "Fotoğraf Çekin"
@@ -81188,7 +81281,7 @@ var ukrainianSurveyStrings = {
81188
81281
  ok: "ГАРАЗД",
81189
81282
  cancel: "Скасувати"
81190
81283
  };
81191
- surveyLocalization.setupLocale("ua", ukrainianSurveyStrings, "українська", "Ukrainian");
81284
+ setupLocale({ localeCode: "ua", strings: ukrainianSurveyStrings, nativeName: "українська", englishName: "Ukrainian" });
81192
81285
  // The following strings have been translated by a machine translation service
81193
81286
  // Remove those strings that you have corrected manually
81194
81287
  // indexText: "{0} of {1}" => "{0} {1}"
@@ -81333,8 +81426,7 @@ var vietnameseSurveyStrings = {
81333
81426
  ok: "OK",
81334
81427
  cancel: "Hủy"
81335
81428
  };
81336
- //Uncomment these two lines on creating a translation file. You should replace "en" and enStrings with your locale ("fr", "de" and so on) and your variable.
81337
- surveyLocalization.setupLocale("vi", vietnameseSurveyStrings, "việt nam", "Vietnamese");
81429
+ setupLocale({ localeCode: "vi", strings: vietnameseSurveyStrings, nativeName: "việt nam", englishName: "Vietnamese" });
81338
81430
  // The following strings have been translated by a machine translation service
81339
81431
  // Remove those strings that you have corrected manually
81340
81432
  // indexText: "{0} of {1}" => "{0} của {1}"
@@ -81479,7 +81571,7 @@ var welshSurveyStrings = {
81479
81571
  ok: "OCÊ",
81480
81572
  cancel: "Canslo"
81481
81573
  };
81482
- surveyLocalization.setupLocale("cy", welshSurveyStrings, "cymraeg", "Welsh");
81574
+ setupLocale({ localeCode: "cy", strings: welshSurveyStrings, nativeName: "cymraeg", englishName: "Welsh" });
81483
81575
  // The following strings have been translated by a machine translation service
81484
81576
  // Remove those strings that you have corrected manually
81485
81577
  // indexText: "{0} of {1}" => "{0} o {1}"
@@ -81624,7 +81716,7 @@ var teluguStrings = {
81624
81716
  ok: "సరే",
81625
81717
  cancel: "రద్దు"
81626
81718
  };
81627
- surveyLocalization.setupLocale("tel", teluguStrings, "telugu", "Telugu");
81719
+ setupLocale({ localeCode: "tel", strings: teluguStrings, nativeName: "telugu", englishName: "Telugu" });
81628
81720
  // The following strings have been translated by a machine translation service
81629
81721
  // Remove those strings that you have corrected manually
81630
81722
  // noneItemText: "None" => "ఎవరు కాదు"
@@ -81773,7 +81865,7 @@ var philippinesStrings = {
81773
81865
  // Uncomment the lines below if you create a custom dictionary.
81774
81866
  // Replace "en" with a custom locale code (for example, "fr" or "de"),
81775
81867
  // Replace `englishStrings` with the name of the variable that contains the custom dictionary.
81776
- surveyLocalization.setupLocale("fil", philippinesStrings, "filipino", "Filipino");
81868
+ setupLocale({ localeCode: "fil", strings: philippinesStrings, nativeName: "filipino", englishName: "Filipino" });
81777
81869
  // The following strings have been translated by a machine translation service
81778
81870
  // Remove those strings that you have corrected manually
81779
81871
  // tabTitlePlaceholder: "New Panel" => "Bagong Panel"// deselectAllItemText: "Deselect all" => "Alisin ang pagpili ng lahat"
@@ -82907,11 +82999,11 @@ var popup_Popup = /** @class */ (function (_super) {
82907
82999
  return this.model;
82908
83000
  };
82909
83001
  Popup.prototype.createModel = function () {
82910
- this.popup = createPopupViewModel(this.props.model, undefined);
83002
+ this.popup = createPopupViewModel(this.props.model);
82911
83003
  };
82912
83004
  Popup.prototype.setTargetElement = function () {
82913
83005
  var container = this.containerRef.current;
82914
- this.popup.setComponentElement(container, this.props.getTarget ? this.props.getTarget(container) : undefined, this.props.getArea ? this.props.getArea(container) : undefined);
83006
+ this.popup.setComponentElement(container);
82915
83007
  };
82916
83008
  Popup.prototype.componentDidMount = function () {
82917
83009
  _super.prototype.componentDidMount.call(this);
@@ -83085,7 +83177,7 @@ var action_bar_item_dropdown_SurveyActionBarItemDropdown = /** @class */ (functi
83085
83177
  var button = _super.prototype.renderInnerButton.call(this);
83086
83178
  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,
83087
83179
  button,
83088
- external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(popup_Popup, { model: this.item.popupModel, getTarget: getActionDropdownButtonTarget })));
83180
+ external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(popup_Popup, { model: this.item.popupModel })));
83089
83181
  };
83090
83182
  SurveyActionBarItemDropdown.prototype.componentDidMount = function () {
83091
83183
  this.viewModel = new ActionDropdownViewModel(this.item);
@@ -84413,13 +84505,20 @@ var svgbundle_SvgBundleComponent = /** @class */ (function (_super) {
84413
84505
  svgbundle_extends(SvgBundleComponent, _super);
84414
84506
  function SvgBundleComponent(props) {
84415
84507
  var _this = _super.call(this, props) || this;
84508
+ _this.onIconsChanged = function () {
84509
+ if (!!_this.containerRef.current) {
84510
+ _this.containerRef.current.innerHTML = SvgRegistry.iconsRenderedHtml();
84511
+ }
84512
+ };
84416
84513
  _this.containerRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createRef();
84417
84514
  return _this;
84418
84515
  }
84419
84516
  SvgBundleComponent.prototype.componentDidMount = function () {
84420
- if (!!this.containerRef.current) {
84421
- this.containerRef.current.innerHTML = SvgRegistry.iconsRenderedHtml();
84422
- }
84517
+ this.onIconsChanged();
84518
+ SvgRegistry.onIconsChanged.add(this.onIconsChanged);
84519
+ };
84520
+ SvgBundleComponent.prototype.componentWillUnmount = function () {
84521
+ SvgRegistry.onIconsChanged.remove(this.onIconsChanged);
84423
84522
  };
84424
84523
  SvgBundleComponent.prototype.render = function () {
84425
84524
  var svgStyle = {
@@ -84535,6 +84634,22 @@ var popup_modal_PopupModal = /** @class */ (function (_super) {
84535
84634
  }(reactquestion_element_SurveyElementBase));
84536
84635
 
84537
84636
 
84637
+ // CONCATENATED MODULE: ./packages/survey-core/src/iconsV1.ts
84638
+ var iconsV1_path = __webpack_require__("./packages/survey-core/src/images-v1 sync recursive \\.svg$");
84639
+ var icons = {};
84640
+ iconsV1_path.keys().forEach(function (key) {
84641
+ icons[key.substring(2, key.length - 4).toLowerCase()] = iconsV1_path(key);
84642
+ });
84643
+
84644
+
84645
+ // CONCATENATED MODULE: ./packages/survey-core/src/iconsV2.ts
84646
+ var iconsV2_path = __webpack_require__("./packages/survey-core/src/images-v2 sync recursive \\.svg$");
84647
+ var iconsV2_icons = {};
84648
+ iconsV2_path.keys().forEach(function (key) {
84649
+ iconsV2_icons[key.substring(2, key.length - 4).toLowerCase()] = iconsV2_path(key);
84650
+ });
84651
+
84652
+
84538
84653
  // CONCATENATED MODULE: ./packages/survey-react-ui/src/reactSurvey.tsx
84539
84654
  var reactSurvey_extends = (undefined && undefined.__extends) || (function () {
84540
84655
  var extendStatics = function (d, b) {
@@ -84574,6 +84689,11 @@ var reactSurvey_assign = (undefined && undefined.__assign) || function () {
84574
84689
 
84575
84690
 
84576
84691
 
84692
+
84693
+
84694
+ addIconsToThemeSet("v1", icons);
84695
+ addIconsToThemeSet("v2", iconsV2_icons);
84696
+ SvgRegistry.registerIcons(icons);
84577
84697
  var reactSurvey_Survey = /** @class */ (function (_super) {
84578
84698
  reactSurvey_extends(Survey, _super);
84579
84699
  function Survey(props) {