survey-react 1.12.11 → 1.12.13

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.11
2
+ * surveyjs - Survey JavaScript library v1.12.13
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, getLocaleString, 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__) {
@@ -1895,6 +1869,7 @@ __webpack_require__.d(__webpack_exports__, "englishStrings", function() { return
1895
1869
  __webpack_require__.d(__webpack_exports__, "surveyLocalization", function() { return /* reexport */ surveyLocalization; });
1896
1870
  __webpack_require__.d(__webpack_exports__, "surveyStrings", function() { return /* reexport */ surveyStrings; });
1897
1871
  __webpack_require__.d(__webpack_exports__, "getLocaleString", function() { return /* reexport */ getLocaleString; });
1872
+ __webpack_require__.d(__webpack_exports__, "setupLocale", function() { return /* reexport */ setupLocale; });
1898
1873
  __webpack_require__.d(__webpack_exports__, "QuestionCustomWidget", function() { return /* reexport */ QuestionCustomWidget; });
1899
1874
  __webpack_require__.d(__webpack_exports__, "CustomWidgetCollection", function() { return /* reexport */ questionCustomWidgets_CustomWidgetCollection; });
1900
1875
  __webpack_require__.d(__webpack_exports__, "QuestionCustomModel", function() { return /* reexport */ question_custom_QuestionCustomModel; });
@@ -1952,8 +1927,8 @@ __webpack_require__.d(__webpack_exports__, "defaultStandardCss", function() { re
1952
1927
  __webpack_require__.d(__webpack_exports__, "modernCss", function() { return /* reexport */ modernCss; });
1953
1928
  __webpack_require__.d(__webpack_exports__, "SvgIconRegistry", function() { return /* reexport */ svgbundle_SvgIconRegistry; });
1954
1929
  __webpack_require__.d(__webpack_exports__, "SvgRegistry", function() { return /* reexport */ SvgRegistry; });
1955
- __webpack_require__.d(__webpack_exports__, "SvgBundleViewModel", function() { return /* reexport */ SvgBundleViewModel; });
1956
- __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; });
1957
1932
  __webpack_require__.d(__webpack_exports__, "RendererFactory", function() { return /* reexport */ RendererFactory; });
1958
1933
  __webpack_require__.d(__webpack_exports__, "ResponsivityManager", function() { return /* reexport */ responsivity_manager_ResponsivityManager; });
1959
1934
  __webpack_require__.d(__webpack_exports__, "VerticalResponsivityManager", function() { return /* reexport */ VerticalResponsivityManager; });
@@ -2227,6 +2202,22 @@ var DomDocumentHelper = /** @class */ (function () {
2227
2202
 
2228
2203
  // CONCATENATED MODULE: ./packages/survey-core/src/helpers.ts
2229
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
+ }
2230
2221
  var helpers_Helpers = /** @class */ (function () {
2231
2222
  function Helpers() {
2232
2223
  }
@@ -2436,13 +2427,16 @@ var helpers_Helpers = /** @class */ (function () {
2436
2427
  };
2437
2428
  Helpers.getNumberCore = function (value) {
2438
2429
  if (typeof value == "string") {
2439
- if (!value.trim())
2430
+ value = value.trim();
2431
+ if (!value)
2440
2432
  return NaN;
2441
2433
  if (value.indexOf("0x") == 0) {
2442
2434
  if (value.length > 32)
2443
2435
  return NaN;
2444
2436
  return parseInt(value);
2445
2437
  }
2438
+ if (value.length > 15 && Helpers.isDigitsOnly(value))
2439
+ return NaN;
2446
2440
  if (Helpers.isStringHasOperator(value))
2447
2441
  return NaN;
2448
2442
  }
@@ -2554,6 +2548,15 @@ var helpers_Helpers = /** @class */ (function () {
2554
2548
  Helpers.isCharDigit = function (ch) {
2555
2549
  return ch >= "0" && ch <= "9";
2556
2550
  };
2551
+ Helpers.isDigitsOnly = function (str) {
2552
+ if (!str)
2553
+ return false;
2554
+ for (var i = 0; i < str.length; i++) {
2555
+ if (!Helpers.isCharDigit(str[i]))
2556
+ return false;
2557
+ }
2558
+ return true;
2559
+ };
2557
2560
  Helpers.getNumberFromStr = function (str, index) {
2558
2561
  if (!this.isCharDigit(str[index]))
2559
2562
  return NaN;
@@ -2723,7 +2726,7 @@ if (!String.prototype["format"]) {
2723
2726
 
2724
2727
  // CONCATENATED MODULE: ./packages/survey-core/src/localization/english.ts
2725
2728
  // Uncomment the line below if you create a custom dictionary
2726
- // import { surveyLocalization } from "survey-core";
2729
+ // import { setupLocale } from "survey-core";
2727
2730
  var englishStrings = {
2728
2731
  pagePrevText: "Previous",
2729
2732
  pageNextText: "Next",
@@ -2836,7 +2839,7 @@ var englishStrings = {
2836
2839
  // Uncomment the lines below if you create a custom dictionary.
2837
2840
  // Replace "en" with a custom locale code (for example, "fr" or "de"),
2838
2841
  // Replace `englishStrings` with the name of the variable that contains the custom dictionary.
2839
- //surveyLocalization.setupLocale("en", englishStrings, "English", "English");
2842
+ //setupLocale({ localeCode: "en", strings: englishStrings, nativeName: "English", englishName: "English" });
2840
2843
 
2841
2844
  // CONCATENATED MODULE: ./packages/survey-core/src/surveyStrings.ts
2842
2845
 
@@ -2955,6 +2958,9 @@ function getLocaleString(strName, locale) {
2955
2958
  if (locale === void 0) { locale = null; }
2956
2959
  return surveyLocalization.getString(strName, locale);
2957
2960
  }
2961
+ function setupLocale(localeConfig) {
2962
+ surveyLocalization.setupLocale(localeConfig.localeCode, localeConfig.strings, localeConfig.nativeName, localeConfig.englishName, localeConfig.rtl ? "rtl" : undefined);
2963
+ }
2958
2964
  var surveyStrings = englishStrings;
2959
2965
  surveyLocalization.locales["en"] = englishStrings;
2960
2966
  surveyLocalization.localeNames["en"] = "english";
@@ -3613,7 +3619,7 @@ var CustomPropertiesCollection = /** @class */ (function () {
3613
3619
  prop.serializationProperty &&
3614
3620
  obj.createCustomLocalizableObj) {
3615
3621
  var locStr = obj.createCustomLocalizableObj(prop.name);
3616
- locStr.defaultValue = prop.defaultValue;
3622
+ locStr.defaultValue = prop.getDefaultValue(obj);
3617
3623
  var locDesc = {
3618
3624
  get: function () {
3619
3625
  return obj.getLocalizableString(prop.name);
@@ -3631,7 +3637,6 @@ var CustomPropertiesCollection = /** @class */ (function () {
3631
3637
  Object.defineProperty(obj, prop.name, desc);
3632
3638
  }
3633
3639
  else {
3634
- var defaultValue = prop.defaultValue;
3635
3640
  var isArrayProp = prop.isArray || prop.type === "multiplevalues";
3636
3641
  if (typeof obj.createNewArray === "function") {
3637
3642
  if (Serializer.isDescendantOf(prop.className, "itemvalue")) {
@@ -3648,10 +3653,10 @@ var CustomPropertiesCollection = /** @class */ (function () {
3648
3653
  }
3649
3654
  }
3650
3655
  if (isArrayProp) {
3656
+ var defaultValue = prop.getDefaultValue(obj);
3651
3657
  if (Array.isArray(defaultValue)) {
3652
3658
  obj.setPropertyValue(prop.name, defaultValue);
3653
3659
  }
3654
- defaultValue = null;
3655
3660
  }
3656
3661
  }
3657
3662
  if (!!obj.getPropertyValue && !!obj.setPropertyValue) {
@@ -3660,7 +3665,7 @@ var CustomPropertiesCollection = /** @class */ (function () {
3660
3665
  if (!!prop.onGetValue) {
3661
3666
  return prop.onGetValue(obj);
3662
3667
  }
3663
- return obj.getPropertyValue(prop.name, defaultValue);
3668
+ return obj.getPropertyValue(prop.name, undefined);
3664
3669
  },
3665
3670
  set: function (v) {
3666
3671
  if (!!prop.onSetValue) {
@@ -5559,14 +5564,14 @@ function getDate(params) {
5559
5564
  return null;
5560
5565
  if (!params[0])
5561
5566
  return null;
5562
- return new Date(params[0]);
5567
+ return createDate("function-getDate", params[0]);
5563
5568
  }
5564
5569
  functionsfactory_FunctionFactory.Instance.register("getDate", getDate);
5565
5570
  function dateDiffMonths(date1Param, date2Param, type) {
5566
5571
  if (type === "days")
5567
5572
  return diffDays([date1Param, date2Param]);
5568
- var date1 = !!date1Param ? new Date(date1Param) : new Date();
5569
- var date2 = !!date2Param ? new Date(date2Param) : new Date();
5573
+ var date1 = createDate("function-dateDiffMonths", date1Param);
5574
+ var date2 = createDate("function-dateDiffMonths", date2Param);
5570
5575
  var age = date2.getFullYear() - date1.getFullYear();
5571
5576
  type = type || "years";
5572
5577
  var ageInMonths = age * 12 + date2.getMonth() - date1.getMonth();
@@ -5575,12 +5580,12 @@ function dateDiffMonths(date1Param, date2Param, type) {
5575
5580
  }
5576
5581
  return type === "months" ? ageInMonths : ~~(ageInMonths / 12);
5577
5582
  }
5578
- function age(params) {
5583
+ function functionsfactory_age(params) {
5579
5584
  if (!Array.isArray(params) || params.length < 1 || !params[0])
5580
5585
  return null;
5581
5586
  return dateDiffMonths(params[0], undefined, (params.length > 1 ? params[1] : "") || "years");
5582
5587
  }
5583
- functionsfactory_FunctionFactory.Instance.register("age", age);
5588
+ functionsfactory_FunctionFactory.Instance.register("age", functionsfactory_age);
5584
5589
  function dateDiff(params) {
5585
5590
  if (!Array.isArray(params) || params.length < 2 || !params[0] || !params[1])
5586
5591
  return null;
@@ -5631,11 +5636,11 @@ function isDisplayMode() {
5631
5636
  }
5632
5637
  functionsfactory_FunctionFactory.Instance.register("isDisplayMode", isDisplayMode);
5633
5638
  function currentDate() {
5634
- return new Date();
5639
+ return createDate("function-currentDate");
5635
5640
  }
5636
5641
  functionsfactory_FunctionFactory.Instance.register("currentDate", currentDate);
5637
5642
  function today(params) {
5638
- var res = new Date();
5643
+ var res = createDate("function-today");
5639
5644
  if (settings.localization.useLocalTimeZone) {
5640
5645
  res.setHours(0, 0, 0, 0);
5641
5646
  }
@@ -5651,11 +5656,11 @@ functionsfactory_FunctionFactory.Instance.register("today", today);
5651
5656
  function getYear(params) {
5652
5657
  if (params.length !== 1 || !params[0])
5653
5658
  return undefined;
5654
- return new Date(params[0]).getFullYear();
5659
+ return createDate("function-getYear", params[0]).getFullYear();
5655
5660
  }
5656
5661
  functionsfactory_FunctionFactory.Instance.register("getYear", getYear);
5657
5662
  function currentYear() {
5658
- return new Date().getFullYear();
5663
+ return createDate("function-currentYear").getFullYear();
5659
5664
  }
5660
5665
  functionsfactory_FunctionFactory.Instance.register("currentYear", currentYear);
5661
5666
  function diffDays(params) {
@@ -5663,36 +5668,36 @@ function diffDays(params) {
5663
5668
  return 0;
5664
5669
  if (!params[0] || !params[1])
5665
5670
  return 0;
5666
- var date1 = new Date(params[0]);
5667
- var date2 = new Date(params[1]);
5671
+ var date1 = createDate("function-diffDays", params[0]);
5672
+ var date2 = createDate("function-diffDays", params[1]);
5668
5673
  var diffTime = Math.abs(date2 - date1);
5669
5674
  return Math.ceil(diffTime / (1000 * 60 * 60 * 24));
5670
5675
  }
5671
5676
  functionsfactory_FunctionFactory.Instance.register("diffDays", diffDays);
5672
- function dateFromFirstParameterOrToday(params) {
5677
+ function dateFromFirstParameterOrToday(name, params) {
5673
5678
  var date = today(undefined);
5674
5679
  if (params && params[0]) {
5675
- date = new Date(params[0]);
5680
+ date = createDate("function-" + name, params[0]);
5676
5681
  }
5677
5682
  return date;
5678
5683
  }
5679
5684
  function functionsfactory_year(params) {
5680
- var date = dateFromFirstParameterOrToday(params);
5685
+ var date = dateFromFirstParameterOrToday("year", params);
5681
5686
  return date.getFullYear();
5682
5687
  }
5683
5688
  functionsfactory_FunctionFactory.Instance.register("year", functionsfactory_year);
5684
5689
  function functionsfactory_month(params) {
5685
- var date = dateFromFirstParameterOrToday(params);
5690
+ var date = dateFromFirstParameterOrToday("month", params);
5686
5691
  return date.getMonth() + 1;
5687
5692
  }
5688
5693
  functionsfactory_FunctionFactory.Instance.register("month", functionsfactory_month);
5689
5694
  function day(params) {
5690
- var date = dateFromFirstParameterOrToday(params);
5695
+ var date = dateFromFirstParameterOrToday("day", params);
5691
5696
  return date.getDate();
5692
5697
  }
5693
5698
  functionsfactory_FunctionFactory.Instance.register("day", day);
5694
5699
  function weekday(params) {
5695
- var date = dateFromFirstParameterOrToday(params);
5700
+ var date = dateFromFirstParameterOrToday("weekday", params);
5696
5701
  return date.getDay();
5697
5702
  }
5698
5703
  functionsfactory_FunctionFactory.Instance.register("weekday", weekday);
@@ -6330,7 +6335,7 @@ var expressions_OperandMaker = /** @class */ (function () {
6330
6335
  };
6331
6336
  OperandMaker.convertValForDateCompare = function (val, second) {
6332
6337
  if (second instanceof Date && typeof val === "string") {
6333
- var res = new Date(val);
6338
+ var res = createDate("expression-operand", val);
6334
6339
  res.setHours(0, 0, 0);
6335
6340
  return res;
6336
6341
  }
@@ -10384,9 +10389,9 @@ var base_Base = /** @class */ (function () {
10384
10389
  var prop = this.getPropertyByName(name);
10385
10390
  if (!prop || prop.isCustom && this.isCreating)
10386
10391
  return undefined;
10387
- var dValue = prop.defaultValue;
10388
10392
  if (!!prop.defaultValueFunc)
10389
- return dValue;
10393
+ return prop.defaultValueFunc(this);
10394
+ var dValue = prop.getDefaultValue(this);
10390
10395
  if (!this.isPropertyEmpty(dValue) && !Array.isArray(dValue))
10391
10396
  return dValue;
10392
10397
  var locStr = this.localizableStrings ? this.localizableStrings[name] : undefined;
@@ -14163,6 +14168,7 @@ var survey_element_SurveyElement = /** @class */ (function (_super) {
14163
14168
  SurveyElement.prototype.getTitleToolbar = function () {
14164
14169
  if (!this.titleToolbarValue) {
14165
14170
  this.titleToolbarValue = this.createActionContainer(true);
14171
+ this.titleToolbarValue.locOwner = this;
14166
14172
  this.titleToolbarValue.containerCss = (this.isPanel ? this.cssClasses.panel.titleBar : this.cssClasses.titleBar) || "sv-action-title-bar";
14167
14173
  this.titleToolbarValue.setItems(this.getTitleActions());
14168
14174
  }
@@ -14199,6 +14205,12 @@ var survey_element_SurveyElement = /** @class */ (function (_super) {
14199
14205
  }
14200
14206
  this.setPropertyValue("titleActions", actions);
14201
14207
  };
14208
+ SurveyElement.prototype.locStrsChanged = function () {
14209
+ _super.prototype.locStrsChanged.call(this);
14210
+ if (!!this.titleToolbarValue) {
14211
+ this.titleToolbarValue.locStrsChanged();
14212
+ }
14213
+ };
14202
14214
  Object.defineProperty(SurveyElement.prototype, "hasTitleActions", {
14203
14215
  get: function () {
14204
14216
  return this.getTitleActions().length > 0;
@@ -15528,8 +15540,14 @@ var localizablestring_LocalizableString = /** @class */ (function () {
15528
15540
  if (!!this.sharedData)
15529
15541
  return this.sharedData.getJson();
15530
15542
  var keys = this.getValuesKeys();
15531
- if (keys.length == 0)
15543
+ if (keys.length == 0) {
15544
+ if (this.serializeCallBackText) {
15545
+ var text = this.calcText();
15546
+ if (!!text)
15547
+ return text;
15548
+ }
15532
15549
  return null;
15550
+ }
15533
15551
  if (keys.length == 1 &&
15534
15552
  keys[0] == settings.localization.defaultLocaleName &&
15535
15553
  !settings.serialization.localizableStringSerializeAsObject)
@@ -16755,33 +16773,23 @@ var settings = {
16755
16773
  * Nested properties:
16756
16774
  *
16757
16775
  * - `itemValueSerializeAsObject`: `boolean`\
16758
- * 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.
16776
+ * 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`.
16759
16777
  *
16760
16778
  * - `itemValueSerializeDisplayText`: `boolean`\
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`. View an example below.
16779
+ * 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`.
16762
16780
  *
16763
16781
  * - `localizableStringSerializeAsObject`: `boolean`\
16764
16782
  * 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`.
16765
16783
  *
16766
- * ```js
16767
- * import { ItemValue, settings } from "survey-core";
16768
- *
16769
- * // `itemValueSerializeAsObject` example
16770
- * settings.serialization.itemValueSerializeAsObject = true;
16771
- * const item = new ItemValue(5);
16772
- * const itemString = item.toJSON(); // Produces { value: 5 } instead of 5
16773
- *
16774
- * // `itemValueSerializeDisplayText` example
16775
- * settings.serialization.itemValueSerializeDisplayText = true;
16776
- * const item = new ItemValue("item1");
16777
- * const itemString = item.toJSON(); // Produces { value: "item1", text: "item1" } instead of "item1"
16778
- * ```
16784
+ * - `matrixDropdownColumnSerializeTitle`: `boolean`\
16785
+ * 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`.
16779
16786
  * @see [settings.parseNumber](https://surveyjs.io/form-library/documentation/api-reference/settings#parseNumber)
16780
16787
  */
16781
16788
  serialization: {
16782
16789
  itemValueSerializeAsObject: false,
16783
16790
  itemValueSerializeDisplayText: false,
16784
- localizableStringSerializeAsObject: false
16791
+ localizableStringSerializeAsObject: false,
16792
+ matrixDropdownColumnSerializeTitle: false
16785
16793
  },
16786
16794
  //#region serialization section, Obsolete properties
16787
16795
  get itemValueAlwaysSerializeAsObject() { return this.serialization.itemValueSerializeAsObject; },
@@ -17344,6 +17352,10 @@ var settings = {
17344
17352
  * ```
17345
17353
  */
17346
17354
  storeUtcDates: false,
17355
+ // @param reason "function-[functionname]", "question-[questionname]", "expression-operand"
17356
+ onDateCreated: function (newDate, reason, val) {
17357
+ return newDate;
17358
+ },
17347
17359
  /**
17348
17360
  * A function that allows you to define custom parsing rules for numbers represented as string values.
17349
17361
  *
@@ -17368,7 +17380,6 @@ var settings = {
17368
17380
  * @see [settings.serialization](https://surveyjs.io/form-library/documentation/api-reference/settings#serialization)
17369
17381
  */
17370
17382
  parseNumber: function (stringValue, numericValue) { return numericValue; },
17371
- useLegacyIcons: true
17372
17383
  };
17373
17384
 
17374
17385
  // CONCATENATED MODULE: ./packages/survey-core/src/survey-error.ts
@@ -19396,10 +19407,8 @@ var question_Question = /** @class */ (function (_super) {
19396
19407
  this.triggersInfo.push(info);
19397
19408
  return info;
19398
19409
  };
19399
- Question.prototype.runTriggerInfo = function (info, name, value) {
19410
+ Question.prototype.runTriggerInfo = function (info, keys) {
19400
19411
  var expression = this[info.name];
19401
- var keys = {};
19402
- keys[name] = value;
19403
19412
  if (!expression || info.isRunning || !info.canRun()) {
19404
19413
  if (info.runSecondCheck(keys)) {
19405
19414
  info.doComplete();
@@ -19423,12 +19432,16 @@ var question_Question = /** @class */ (function (_super) {
19423
19432
  info.isRunning = true;
19424
19433
  info.runner.run(this.getDataFilteredValues(), this.getDataFilteredProperties());
19425
19434
  };
19426
- Question.prototype.runTriggers = function (name, value) {
19435
+ Question.prototype.runTriggers = function (name, value, keys) {
19427
19436
  var _this = this;
19428
19437
  if (this.isSettingQuestionValue || (this.parentQuestion && this.parentQuestion.getValueName() === name))
19429
19438
  return;
19439
+ if (!keys) {
19440
+ keys = {};
19441
+ keys[name] = value;
19442
+ }
19430
19443
  this.triggersInfo.forEach(function (info) {
19431
- _this.runTriggerInfo(info, name, value);
19444
+ _this.runTriggerInfo(info, keys);
19432
19445
  });
19433
19446
  };
19434
19447
  Question.prototype.runConditions = function () {
@@ -20070,8 +20083,8 @@ var question_Question = /** @class */ (function (_super) {
20070
20083
  };
20071
20084
  Question.prototype.getCssDescription = function (cssClasses) {
20072
20085
  return new CssClassBuilder()
20073
- .append(cssClasses.description, this.hasDescriptionUnderTitle)
20074
- .append(cssClasses.descriptionUnderInput, this.hasDescriptionUnderInput)
20086
+ .append(cssClasses.description)
20087
+ .append(cssClasses.descriptionUnderInput, this.getDescriptionLocation() == "underInput")
20075
20088
  .toString();
20076
20089
  };
20077
20090
  Question.prototype.showErrorOnCore = function (location) {
@@ -22029,7 +22042,7 @@ var question_Question = /** @class */ (function (_super) {
22029
22042
  get: function () {
22030
22043
  if (this.isNewA11yStructure)
22031
22044
  return null;
22032
- if (this.hasTitle) {
22045
+ if (this.hasTitle && this.hasDescription) {
22033
22046
  return this.ariaDescriptionId;
22034
22047
  }
22035
22048
  else {
@@ -22097,7 +22110,7 @@ var question_Question = /** @class */ (function (_super) {
22097
22110
  });
22098
22111
  Object.defineProperty(Question.prototype, "a11y_input_ariaDescribedBy", {
22099
22112
  get: function () {
22100
- if (this.hasTitle && !this.parentQuestion) {
22113
+ if (this.hasTitle && !this.parentQuestion && this.hasDescription) {
22101
22114
  return this.ariaDescriptionId;
22102
22115
  }
22103
22116
  else {
@@ -26081,7 +26094,7 @@ var question_expression_QuestionExpressionModel = /** @class */ (function (_supe
26081
26094
  };
26082
26095
  QuestionExpressionModel.prototype.getValueAsStr = function (val) {
26083
26096
  if (this.displayStyle == "date") {
26084
- var d = new Date(val);
26097
+ var d = createDate("question-expression", val);
26085
26098
  if (!!d && !!d.toLocaleDateString)
26086
26099
  return d.toLocaleDateString();
26087
26100
  }
@@ -27242,6 +27255,9 @@ var question_matrixdropdowncolumn_MatrixDropdownColumn = /** @class */ (function
27242
27255
  else {
27243
27256
  this.templateQuestion.locTitle.strChanged();
27244
27257
  }
27258
+ if (settings.serialization.matrixDropdownColumnSerializeTitle) {
27259
+ this.templateQuestion.locTitle.serializeCallBackText = true;
27260
+ }
27245
27261
  this.templateQuestion.onPropertyChanged.add(function (sender, options) {
27246
27262
  _this.propertyValueChanged(options.name, options.oldValue, options.newValue, options.arrayChanges, options.target);
27247
27263
  });
@@ -28121,7 +28137,7 @@ var question_matrixdropdownrendered_QuestionMatrixDropdownRenderedTable = /** @c
28121
28137
  return;
28122
28138
  this.headerRowValue = this.createRenderedRow(this.cssClasses);
28123
28139
  if (this.isRowsDragAndDrop) {
28124
- this.headerRow.cells.push(this.createHeaderCell(null, "action"));
28140
+ this.headerRow.cells.push(this.createHeaderCell(null, "action", this.cssClasses.actionsCellDrag));
28125
28141
  }
28126
28142
  if (this.hasActionCellInRows("start")) {
28127
28143
  this.headerRow.cells.push(this.createHeaderCell(null, "action"));
@@ -28669,22 +28685,23 @@ var question_matrixdropdownrendered_QuestionMatrixDropdownRenderedTable = /** @c
28669
28685
  return null;
28670
28686
  return choices;
28671
28687
  };
28672
- QuestionMatrixDropdownRenderedTable.prototype.setHeaderCellCssClasses = function (cell, cellType) {
28688
+ QuestionMatrixDropdownRenderedTable.prototype.setHeaderCellCssClasses = function (cell, cellType, classMod) {
28673
28689
  cell.className = new CssClassBuilder()
28674
28690
  .append(this.cssClasses.headerCell)
28675
28691
  .append(this.cssClasses.columnTitleCell, this.matrix.isColumnLayoutHorizontal)
28676
28692
  .append(this.cssClasses.emptyCell, !!cell.isEmpty)
28677
28693
  .append(this.cssClasses.cell + "--" + cellType, !!cellType)
28694
+ .append(classMod, !!classMod)
28678
28695
  .toString();
28679
28696
  };
28680
- QuestionMatrixDropdownRenderedTable.prototype.createHeaderCell = function (column, cellType) {
28697
+ QuestionMatrixDropdownRenderedTable.prototype.createHeaderCell = function (column, cellType, classMod) {
28681
28698
  if (cellType === void 0) { cellType = null; }
28682
28699
  var cell = !!column ? this.createTextCell(column.locTitle) : this.createEmptyCell();
28683
28700
  cell.column = column;
28684
28701
  this.setHeaderCell(column, cell);
28685
28702
  if (!cellType)
28686
28703
  cellType = (!!column && column.cellType !== "default") ? column.cellType : this.matrix.cellType;
28687
- this.setHeaderCellCssClasses(cell, cellType);
28704
+ this.setHeaderCellCssClasses(cell, cellType, classMod);
28688
28705
  return cell;
28689
28706
  };
28690
28707
  QuestionMatrixDropdownRenderedTable.prototype.setHeaderCell = function (column, cell) {
@@ -30320,9 +30337,9 @@ var question_matrixdropdownbase_QuestionMatrixDropdownModelBase = /** @class */
30320
30337
  counter < 3);
30321
30338
  this.updateVisibilityBasedOnRows();
30322
30339
  };
30323
- QuestionMatrixDropdownModelBase.prototype.runTriggers = function (name, value) {
30324
- _super.prototype.runTriggers.call(this, name, value);
30325
- this.runFuncForCellQuestions(function (q) { q.runTriggers(name, value); });
30340
+ QuestionMatrixDropdownModelBase.prototype.runTriggers = function (name, value, keys) {
30341
+ _super.prototype.runTriggers.call(this, name, value, keys);
30342
+ this.runFuncForCellQuestions(function (q) { q.runTriggers(name, value, keys); });
30326
30343
  };
30327
30344
  QuestionMatrixDropdownModelBase.prototype.updateElementVisibility = function () {
30328
30345
  _super.prototype.updateElementVisibility.call(this);
@@ -30557,7 +30574,7 @@ var question_matrixdropdownbase_QuestionMatrixDropdownModelBase = /** @class */
30557
30574
  /**
30558
30575
  * An error message displayed when users enter a duplicate value into a column that accepts only unique values (`isUnique` is set to `true` or `keyName` is specified).
30559
30576
  *
30560
- * A default value for this property is taken from a [localization dictionary](https://github.com/surveyjs/survey-library/tree/master/src/localization). Refer to the following help topic for more information: [Localization & Globalization](https://surveyjs.io/form-library/documentation/localization).
30577
+ * A default value for this property is taken from a [localization dictionary](https://github.com/surveyjs/survey-library/tree/01bd8abd0c574719956d4d579d48c8010cd389d4/packages/survey-core/src/localization). Refer to the following help topic for more information: [Localization & Globalization](https://surveyjs.io/form-library/documentation/localization).
30561
30578
  * @see isUniqueCaseSensitive
30562
30579
  */
30563
30580
  get: function () {
@@ -32820,7 +32837,7 @@ var question_matrixdynamic_QuestionMatrixDynamicModel = /** @class */ (function
32820
32837
  return true;
32821
32838
  };
32822
32839
  QuestionMatrixDynamicModel.prototype.onPointerDown = function (pointerDownEvent, row) {
32823
- if (!row || !this.isRowsDragAndDrop)
32840
+ if (!row || !this.isRowsDragAndDrop || this.isDesignMode)
32824
32841
  return;
32825
32842
  if (this.isBanStartDrag(pointerDownEvent))
32826
32843
  return;
@@ -34135,7 +34152,7 @@ var defaultV2Css = {
34135
34152
  requiredText: "sd-question__required-text",
34136
34153
  number: "sd-element__num",
34137
34154
  description: "sd-description sd-question__description",
34138
- descriptionUnderInput: "sd-description sd-question__description sd-question__description--under-input",
34155
+ descriptionUnderInput: "sd-question__description--under-input",
34139
34156
  comment: "sd-input sd-comment",
34140
34157
  other: "sd-input sd-comment",
34141
34158
  required: "sd-question--required",
@@ -39928,82 +39945,6 @@ var surveyToc_TOCModel = /** @class */ (function () {
39928
39945
  }());
39929
39946
 
39930
39947
 
39931
- // CONCATENATED MODULE: ./packages/survey-core/src/svgbundle.ts
39932
-
39933
-
39934
- var SvgIconData = /** @class */ (function () {
39935
- function SvgIconData() {
39936
- }
39937
- return SvgIconData;
39938
- }());
39939
- var svgbundle_SvgIconRegistry = /** @class */ (function () {
39940
- function SvgIconRegistry() {
39941
- this.icons = {};
39942
- this.iconPrefix = "icon-";
39943
- }
39944
- SvgIconRegistry.prototype.processId = function (iconId, iconPrefix) {
39945
- if (iconId.indexOf(iconPrefix) == 0)
39946
- iconId = iconId.substring(iconPrefix.length);
39947
- iconId = renamedIcons[iconId] || iconId;
39948
- return iconId;
39949
- };
39950
- SvgIconRegistry.prototype.registerIconFromSymbol = function (iconId, iconSymbolSvg) {
39951
- this.icons[iconId] = iconSymbolSvg;
39952
- };
39953
- SvgIconRegistry.prototype.registerIconFromSvgViaElement = function (iconId, iconSvg, iconPrefix) {
39954
- if (iconPrefix === void 0) { iconPrefix = this.iconPrefix; }
39955
- if (!DomDocumentHelper.isAvailable())
39956
- return;
39957
- iconId = this.processId(iconId, iconPrefix);
39958
- var divSvg = DomDocumentHelper.createElement("div");
39959
- divSvg.innerHTML = iconSvg;
39960
- var symbol = DomDocumentHelper.createElement("symbol");
39961
- var svg = divSvg.querySelector("svg");
39962
- symbol.innerHTML = svg.innerHTML;
39963
- for (var i = 0; i < svg.attributes.length; i++) {
39964
- symbol.setAttributeNS("http://www.w3.org/2000/svg", svg.attributes[i].name, svg.attributes[i].value);
39965
- }
39966
- symbol.id = iconPrefix + iconId;
39967
- this.registerIconFromSymbol(iconId, symbol.outerHTML);
39968
- };
39969
- SvgIconRegistry.prototype.registerIconFromSvg = function (iconId, iconSvg, iconPrefix) {
39970
- if (iconPrefix === void 0) { iconPrefix = this.iconPrefix; }
39971
- iconId = this.processId(iconId, iconPrefix);
39972
- var startStr = "<svg ";
39973
- var endStr = "</svg>";
39974
- iconSvg = iconSvg.trim();
39975
- var str = iconSvg.toLowerCase();
39976
- if (str.substring(0, startStr.length) === startStr &&
39977
- str.substring(str.length - endStr.length, str.length) === endStr) {
39978
- this.registerIconFromSymbol(iconId, "<symbol " +
39979
- "id=\"" + iconPrefix + iconId + "\" " +
39980
- iconSvg.substring(startStr.length, str.length - endStr.length) +
39981
- "</symbol>");
39982
- return true;
39983
- }
39984
- else {
39985
- return false;
39986
- }
39987
- };
39988
- SvgIconRegistry.prototype.registerIconsFromFolder = function (r) {
39989
- var _this = this;
39990
- r.keys().forEach(function (key) {
39991
- _this.registerIconFromSvg(key.substring(2, key.length - 4).toLowerCase(), r(key));
39992
- });
39993
- };
39994
- SvgIconRegistry.prototype.iconsRenderedHtml = function () {
39995
- var _this = this;
39996
- return Object.keys(this.icons).map(function (icon) { return _this.icons[icon]; }).join("");
39997
- };
39998
- return SvgIconRegistry;
39999
- }());
40000
-
40001
- var SvgRegistry = new svgbundle_SvgIconRegistry();
40002
- var SvgBundleViewModel;
40003
- var svgBundle = {};
40004
- svgBundle.V1 = __webpack_require__("./packages/survey-core/src/images-v1 sync recursive \\.svg$");
40005
- svgBundle.V2 = __webpack_require__("./packages/survey-core/src/images-v2 sync recursive \\.svg$");
40006
-
40007
39948
  // CONCATENATED MODULE: ./packages/survey-core/src/survey.ts
40008
39949
  var survey_extends = (undefined && undefined.__extends) || (function () {
40009
39950
  var extendStatics = function (d, b) {
@@ -40052,7 +39993,6 @@ var survey_decorate = (undefined && undefined.__decorate) || function (decorator
40052
39993
 
40053
39994
 
40054
39995
 
40055
-
40056
39996
  /**
40057
39997
  * The `SurveyModel` object contains properties and methods that allow you to control the survey and access its elements.
40058
39998
  *
@@ -41008,7 +40948,6 @@ var survey_SurveyModel = /** @class */ (function (_super) {
41008
40948
  data: _this.navigationBar
41009
40949
  });
41010
40950
  _this.locTitle.onStringChanged.add(function () { return _this.titleIsEmpty = _this.locTitle.isEmpty; });
41011
- _this.registerIcons();
41012
40951
  return _this;
41013
40952
  }
41014
40953
  Object.defineProperty(SurveyModel.prototype, "platformName", {
@@ -45929,7 +45868,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
45929
45868
  }, elementsToRenderBefore);
45930
45869
  }
45931
45870
  else {
45932
- if (!elementPage_1 && !this.isSinglePage && !this.isDesignMode && this.rootElement) {
45871
+ if (element.isPage && !this.isSinglePage && !this.isDesignMode && this.rootElement) {
45933
45872
  var elementToScroll = this.rootElement.querySelector(classesToSelector(this.css.rootWrapper));
45934
45873
  survey_element_SurveyElement.ScrollElementToViewCore(elementToScroll, false, scrollIfVisible, scrollIntoViewOptions, onScolledCallback);
45935
45874
  }
@@ -46454,12 +46393,9 @@ var survey_SurveyModel = /** @class */ (function (_super) {
46454
46393
  var question = questions[i];
46455
46394
  this.checkQuestionErrorOnValueChanged(question);
46456
46395
  question.onSurveyValueChanged(newValue);
46457
- this.fireOnValueChanged(valueName, newValue, question);
46458
46396
  }
46459
46397
  }
46460
- else {
46461
- this.fireOnValueChanged(valueName, newValue, null);
46462
- }
46398
+ this.fireOnValueChanged(valueName, newValue, !!questionName ? this.getQuestionByName(questionName) : undefined);
46463
46399
  if (this.isDisposed)
46464
46400
  return;
46465
46401
  this.checkElementsBindings(valueName, newValue);
@@ -46633,11 +46569,17 @@ var survey_SurveyModel = /** @class */ (function (_super) {
46633
46569
  SurveyModel.prototype.runConditionOnValueChanged = function (name, value) {
46634
46570
  if (this.isRunningConditions) {
46635
46571
  this.conditionValues[name] = value;
46572
+ if (this.questionTriggersKeys) {
46573
+ this.questionTriggersKeys[name] = value;
46574
+ }
46636
46575
  this.isValueChangedOnRunningCondition = true;
46637
46576
  }
46638
46577
  else {
46578
+ this.questionTriggersKeys = {};
46579
+ this.questionTriggersKeys[name] = value;
46639
46580
  this.runConditions();
46640
46581
  this.runQuestionsTriggers(name, value);
46582
+ this.questionTriggersKeys = undefined;
46641
46583
  }
46642
46584
  };
46643
46585
  SurveyModel.prototype.runConditionsCore = function (properties) {
@@ -46654,10 +46596,13 @@ var survey_SurveyModel = /** @class */ (function (_super) {
46654
46596
  }
46655
46597
  };
46656
46598
  SurveyModel.prototype.runQuestionsTriggers = function (name, value) {
46599
+ var _this = this;
46657
46600
  if (this.isDisplayMode || this.isDesignMode)
46658
46601
  return;
46659
46602
  var questions = this.getAllQuestions();
46660
- questions.forEach(function (q) { return q.runTriggers(name, value); });
46603
+ questions.forEach(function (q) {
46604
+ q.runTriggers(name, value, _this.questionTriggersKeys);
46605
+ });
46661
46606
  };
46662
46607
  SurveyModel.prototype.checkIfNewPagesBecomeVisible = function (oldCurrentPageIndex) {
46663
46608
  var newCurrentPageIndex = this.pages.indexOf(this.currentPage);
@@ -48588,16 +48533,6 @@ var survey_SurveyModel = /** @class */ (function (_super) {
48588
48533
  }
48589
48534
  }
48590
48535
  };
48591
- SurveyModel.prototype.registerIcons = function () {
48592
- var path;
48593
- if (settings.useLegacyIcons) {
48594
- path = svgBundle.V1;
48595
- }
48596
- else {
48597
- path = svgBundle.V2;
48598
- }
48599
- SvgRegistry.registerIconsFromFolder(path);
48600
- };
48601
48536
  SurveyModel.TemplateRendererComponentName = "sv-template-renderer";
48602
48537
  // private static stylesManager: StylesManager = null;
48603
48538
  SurveyModel.platform = "unknown";
@@ -52571,11 +52506,8 @@ var dropdownListModel_DropdownListModel = /** @class */ (function (_super) {
52571
52506
  var _this = this;
52572
52507
  var isUpdate = (this.itemsSettings.skip + 1) < this.itemsSettings.totalCount;
52573
52508
  if (!this.itemsSettings.skip || isUpdate) {
52509
+ this.resetTimer();
52574
52510
  if (!!this.filterString && settings.dropdownSearchDelay > 0) {
52575
- if (!!this.timer) {
52576
- clearTimeout(this.timer);
52577
- this.timer = undefined;
52578
- }
52579
52511
  this.timer = setTimeout(function () {
52580
52512
  _this.loadQuestionChoices(callbackAfterItemsLoaded);
52581
52513
  }, settings.dropdownSearchDelay);
@@ -52585,6 +52517,12 @@ var dropdownListModel_DropdownListModel = /** @class */ (function (_super) {
52585
52517
  }
52586
52518
  }
52587
52519
  };
52520
+ DropdownListModel.prototype.resetTimer = function () {
52521
+ if (!!this.timer) {
52522
+ clearTimeout(this.timer);
52523
+ this.timer = undefined;
52524
+ }
52525
+ };
52588
52526
  DropdownListModel.prototype.updatePopupFocusFirstInputSelector = function () {
52589
52527
  this._popupModel.focusFirstInputSelector = this.focusFirstInputSelector;
52590
52528
  };
@@ -55355,16 +55293,19 @@ var question_text_QuestionTextModel = /** @class */ (function (_super) {
55355
55293
  QuestionTextModel.prototype.hasToConvertToUTC = function (val) {
55356
55294
  return settings.storeUtcDates && this.isDateTimeLocaleType() && !!val;
55357
55295
  };
55296
+ QuestionTextModel.prototype.createDate = function (val) {
55297
+ return createDate("question-text", val);
55298
+ };
55358
55299
  QuestionTextModel.prototype.valueForSurveyCore = function (val) {
55359
55300
  if (this.hasToConvertToUTC(val)) {
55360
- val = new Date(val).toISOString();
55301
+ val = this.createDate(val).toISOString();
55361
55302
  }
55362
55303
  return _super.prototype.valueForSurveyCore.call(this, val);
55363
55304
  };
55364
55305
  QuestionTextModel.prototype.valueFromDataCore = function (val) {
55365
55306
  if (this.hasToConvertToUTC(val)) {
55366
- var d = new Date(val);
55367
- var locale_d = new Date(d.getTime() - d.getTimezoneOffset() * 60 * 1000);
55307
+ var d = this.createDate(val);
55308
+ var locale_d = this.createDate(d.getTime() - d.getTimezoneOffset() * 60 * 1000);
55368
55309
  var res = locale_d.toISOString();
55369
55310
  val = res.substring(0, res.length - 2);
55370
55311
  }
@@ -55457,7 +55398,7 @@ var question_text_QuestionTextModel = /** @class */ (function (_super) {
55457
55398
  QuestionTextModel.prototype.getCalculatedMinMax = function (minMax) {
55458
55399
  if (this.isValueEmpty(minMax))
55459
55400
  return minMax;
55460
- return this.isDateInputType ? new Date(minMax) : minMax;
55401
+ return this.isDateInputType ? this.createDate(minMax) : minMax;
55461
55402
  };
55462
55403
  QuestionTextModel.prototype.setRenderedMinMax = function (values, properties) {
55463
55404
  var _this = this;
@@ -55551,7 +55492,7 @@ var question_text_QuestionTextModel = /** @class */ (function (_super) {
55551
55492
  return helpers_Helpers.isNumber(newValue) ? helpers_Helpers.getNumber(newValue) : "";
55552
55493
  }
55553
55494
  if (this.inputType === "month") {
55554
- var d = new Date(newValue);
55495
+ var d = this.createDate(newValue);
55555
55496
  var isUtc = d.toISOString().indexOf(newValue) == 0 && newValue.indexOf("T") == -1;
55556
55497
  var month = isUtc ? d.getUTCMonth() : d.getMonth();
55557
55498
  var year = isUtc ? d.getUTCFullYear() : d.getFullYear();
@@ -55672,8 +55613,9 @@ function getCorrectMinMax(obj, min, max, isMax) {
55672
55613
  return val;
55673
55614
  if (obj.inputType.indexOf("date") === 0 || obj.inputType === "month") {
55674
55615
  var isMonth = obj.inputType === "month";
55675
- var dMin = new Date(isMonth ? min + "-01" : min);
55676
- var dMax = new Date(isMonth ? max + "-01" : max);
55616
+ var reason = "question-text-minmax";
55617
+ var dMin = createDate(reason, isMonth ? min + "-01" : min);
55618
+ var dMax = createDate(reason, isMonth ? max + "-01" : max);
55677
55619
  if (!dMin || !dMax)
55678
55620
  return val;
55679
55621
  if (dMin > dMax)
@@ -57665,6 +57607,16 @@ var question_checkbox_QuestionCheckboxModel = /** @class */ (function (_super) {
57665
57607
  }
57666
57608
  return false;
57667
57609
  };
57610
+ QuestionCheckboxModel.prototype.hasUnknownValueItem = function (val, includeOther, isFilteredChoices, checkEmptyValue) {
57611
+ if (includeOther === void 0) { includeOther = false; }
57612
+ if (isFilteredChoices === void 0) { isFilteredChoices = true; }
57613
+ if (checkEmptyValue === void 0) { checkEmptyValue = false; }
57614
+ var propName = this.valuePropertyName;
57615
+ if (!!propName && typeof val === "object" && val[propName] !== undefined) {
57616
+ val = val[propName];
57617
+ }
57618
+ return _super.prototype.hasUnknownValueItem.call(this, val, includeOther, isFilteredChoices, checkEmptyValue);
57619
+ };
57668
57620
  QuestionCheckboxModel.prototype.convertFuncValuetoQuestionValue = function (val) {
57669
57621
  var _this = this;
57670
57622
  if (!!this.valuePropertyName && Array.isArray(val) && val.length > 0) {
@@ -57915,11 +57867,23 @@ var question_checkbox_QuestionCheckboxModel = /** @class */ (function (_super) {
57915
57867
  return "";
57916
57868
  return newValue[ind];
57917
57869
  };
57870
+ QuestionCheckboxModel.prototype.getStoreOthersAsComment = function () {
57871
+ if (!!this.valuePropertyName)
57872
+ return false;
57873
+ return _super.prototype.getStoreOthersAsComment.call(this);
57874
+ };
57918
57875
  QuestionCheckboxModel.prototype.setOtherValueIntoValue = function (newValue) {
57919
57876
  var ind = this.getFirstUnknownIndex(newValue);
57920
57877
  if (ind < 0)
57921
57878
  return newValue;
57922
- newValue.splice(ind, 1, this.otherItem.value);
57879
+ var otherVal = this.otherItem.value;
57880
+ var propName = this.valuePropertyName;
57881
+ if (propName) {
57882
+ var obj = {};
57883
+ obj[propName] = otherVal;
57884
+ otherVal = obj;
57885
+ }
57886
+ newValue.splice(ind, 1, otherVal);
57923
57887
  return newValue;
57924
57888
  };
57925
57889
  QuestionCheckboxModel.prototype.getFirstUnknownIndex = function (newValue) {
@@ -58738,9 +58702,11 @@ var question_tagbox_QuestionTagboxModel = /** @class */ (function (_super) {
58738
58702
  this.onOpened.fire(this, { question: this, choices: this.choices });
58739
58703
  };
58740
58704
  QuestionTagboxModel.prototype.hasUnknownValue = function (val, includeOther, isFilteredChoices, checkEmptyValue) {
58741
- if (this.choicesLazyLoadEnabled) {
58705
+ if (includeOther === void 0) { includeOther = false; }
58706
+ if (isFilteredChoices === void 0) { isFilteredChoices = true; }
58707
+ if (checkEmptyValue === void 0) { checkEmptyValue = false; }
58708
+ if (this.choicesLazyLoadEnabled)
58742
58709
  return false;
58743
- }
58744
58710
  return _super.prototype.hasUnknownValue.call(this, val, includeOther, isFilteredChoices, checkEmptyValue);
58745
58711
  };
58746
58712
  QuestionTagboxModel.prototype.needConvertRenderedOtherToDataValue = function () {
@@ -60413,6 +60379,12 @@ var question_comment_QuestionCommentModel = /** @class */ (function (_super) {
60413
60379
  _super.prototype.setNewValue.call(this, newValue);
60414
60380
  };
60415
60381
  QuestionCommentModel.prototype.getValueSeparator = function () { return "\n"; };
60382
+ QuestionCommentModel.prototype.notifyStateChanged = function (prevState) {
60383
+ _super.prototype.notifyStateChanged.call(this, prevState);
60384
+ if (!this.isCollapsed) {
60385
+ this.textAreaModel.updateElement();
60386
+ }
60387
+ };
60416
60388
  Object.defineProperty(QuestionCommentModel.prototype, "className", {
60417
60389
  get: function () {
60418
60390
  return (this.cssClasses ? this.getControlClass() : "panel-comment-root") || undefined;
@@ -62331,7 +62303,7 @@ var question_radiogroup_QuestionRadiogroupModel = /** @class */ (function (_supe
62331
62303
  var actions = [];
62332
62304
  if (this.isDefaultV2Theme && !this.isDesignMode) {
62333
62305
  var clearAction = new action_Action({
62334
- title: this.clearButtonCaption,
62306
+ locTitleName: "clearCaption",
62335
62307
  id: "sv-clr-btn-" + this.id,
62336
62308
  action: function () { _this.clearValue(true); },
62337
62309
  innerCss: this.cssClasses.clearButton,
@@ -66067,8 +66039,8 @@ Serializer.addClass("signaturepad", [
66067
66039
  default: "png",
66068
66040
  choices: [
66069
66041
  { value: "png", text: "PNG" },
66070
- { value: "image/jpeg", text: "JPEG" },
66071
- { value: "image/svg+xml", text: "SVG" },
66042
+ { value: "jpeg", text: "JPEG" },
66043
+ { value: "svg", text: "SVG" },
66072
66044
  ],
66073
66045
  onSettingValue: function (obj, val) {
66074
66046
  return correctFormatData(val);
@@ -66578,7 +66550,7 @@ var question_paneldynamic_QuestionPanelDynamicModel = /** @class */ (function (_
66578
66550
  /**
66579
66551
  * A placeholder for tab titles that applies when the [`templateTabTitle`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#templateTabTitle) expression doesn't produce a meaningful value.
66580
66552
  *
66581
- * Default value: `"New Panel"` (taken from a [localization dictionary](https://github.com/surveyjs/survey-library/tree/master/src/localization))
66553
+ * Default value: `"New Panel"` (taken from a [localization dictionary](https://github.com/surveyjs/survey-library/tree/01bd8abd0c574719956d4d579d48c8010cd389d4/packages/survey-core/src/localization))
66582
66554
  */
66583
66555
  get: function () {
66584
66556
  return this.locTabTitlePlaceholder.text;
@@ -67006,7 +66978,7 @@ var question_paneldynamic_QuestionPanelDynamicModel = /** @class */ (function (_
67006
66978
  /**
67007
66979
  * An error message displayed when users enter a duplicate value into a question that accepts only unique values (`isUnique` is set to `true` or `keyName` is specified).
67008
66980
  *
67009
- * A default value for this property is taken from a [localization dictionary](https://github.com/surveyjs/survey-library/tree/master/src/localization). Refer to the following help topic for more information: [Localization & Globalization](https://surveyjs.io/form-library/documentation/localization).
66981
+ * A default value for this property is taken from a [localization dictionary](https://github.com/surveyjs/survey-library/tree/01bd8abd0c574719956d4d579d48c8010cd389d4/packages/survey-core/src/localization). Refer to the following help topic for more information: [Localization & Globalization](https://surveyjs.io/form-library/documentation/localization).
67010
66982
  * @see keyName
67011
66983
  */
67012
66984
  get: function () {
@@ -68229,10 +68201,10 @@ var question_paneldynamic_QuestionPanelDynamicModel = /** @class */ (function (_
68229
68201
  _super.prototype.runCondition.call(this, values, properties);
68230
68202
  this.runPanelsCondition(this.panelsCore, values, properties);
68231
68203
  };
68232
- QuestionPanelDynamicModel.prototype.runTriggers = function (name, value) {
68233
- _super.prototype.runTriggers.call(this, name, value);
68204
+ QuestionPanelDynamicModel.prototype.runTriggers = function (name, value, keys) {
68205
+ _super.prototype.runTriggers.call(this, name, value, keys);
68234
68206
  this.visiblePanelsCore.forEach(function (p) {
68235
- p.questions.forEach(function (q) { return q.runTriggers(name, value); });
68207
+ p.questions.forEach(function (q) { return q.runTriggers(name, value, keys); });
68236
68208
  });
68237
68209
  };
68238
68210
  QuestionPanelDynamicModel.prototype.reRunCondition = function () {
@@ -70678,7 +70650,7 @@ var mask_base_InputMaskBase = /** @class */ (function (_super) {
70678
70650
  var properties = Serializer.getProperties(this.getType());
70679
70651
  properties.forEach(function (property) {
70680
70652
  var currentValue = json[property.name];
70681
- _this[property.name] = currentValue !== undefined ? currentValue : property.defaultValue;
70653
+ _this[property.name] = currentValue !== undefined ? currentValue : property.getDefaultValue(_this);
70682
70654
  });
70683
70655
  };
70684
70656
  InputMaskBase.prototype.getData = function () {
@@ -72059,8 +72031,8 @@ Serializer.addClass("currencymask", [
72059
72031
 
72060
72032
  var Version;
72061
72033
  var ReleaseDate;
72062
- Version = "" + "1.12.11";
72063
- ReleaseDate = "" + "2024-11-20";
72034
+ Version = "" + "1.12.13";
72035
+ ReleaseDate = "" + "2024-12-04";
72064
72036
  function checkLibraryVersion(ver, libraryName) {
72065
72037
  if (Version != ver) {
72066
72038
  var str = "survey-core has version '" + Version + "' and " + libraryName
@@ -73498,6 +73470,96 @@ var modernCss = {
73498
73470
  };
73499
73471
  surveyCss["modern"] = modernCss;
73500
73472
 
73473
+ // CONCATENATED MODULE: ./packages/survey-core/src/svgbundle.ts
73474
+
73475
+
73476
+
73477
+ var svgbundle_SvgIconRegistry = /** @class */ (function () {
73478
+ function SvgIconRegistry() {
73479
+ this.icons = {};
73480
+ this.iconPrefix = "icon-";
73481
+ this.onIconsChanged = new EventBase();
73482
+ }
73483
+ SvgIconRegistry.prototype.processId = function (iconId, iconPrefix) {
73484
+ if (iconId.indexOf(iconPrefix) == 0) {
73485
+ iconId = iconId.substring(iconPrefix.length);
73486
+ }
73487
+ iconId = renamedIcons[iconId] || iconId;
73488
+ return iconId;
73489
+ };
73490
+ SvgIconRegistry.prototype.registerIconFromSymbol = function (iconId, iconSymbolSvg) {
73491
+ this.icons[iconId] = iconSymbolSvg;
73492
+ };
73493
+ SvgIconRegistry.prototype.registerIconFromSvgViaElement = function (iconId, iconSvg, iconPrefix) {
73494
+ if (iconPrefix === void 0) { iconPrefix = this.iconPrefix; }
73495
+ if (!DomDocumentHelper.isAvailable())
73496
+ return;
73497
+ iconId = this.processId(iconId, iconPrefix);
73498
+ var divSvg = DomDocumentHelper.createElement("div");
73499
+ divSvg.innerHTML = iconSvg;
73500
+ var symbol = DomDocumentHelper.createElement("symbol");
73501
+ var svg = divSvg.querySelector("svg");
73502
+ symbol.innerHTML = svg.innerHTML;
73503
+ for (var i = 0; i < svg.attributes.length; i++) {
73504
+ symbol.setAttributeNS("http://www.w3.org/2000/svg", svg.attributes[i].name, svg.attributes[i].value);
73505
+ }
73506
+ symbol.id = iconPrefix + iconId;
73507
+ this.registerIconFromSymbol(iconId, symbol.outerHTML);
73508
+ };
73509
+ SvgIconRegistry.prototype.registerIconFromSvg = function (iconId, iconSvg, iconPrefix) {
73510
+ if (iconPrefix === void 0) { iconPrefix = this.iconPrefix; }
73511
+ iconId = this.processId(iconId, iconPrefix);
73512
+ var startStr = "<svg ";
73513
+ var endStr = "</svg>";
73514
+ iconSvg = iconSvg.trim();
73515
+ var str = iconSvg.toLowerCase();
73516
+ if (str.substring(0, startStr.length) === startStr &&
73517
+ str.substring(str.length - endStr.length, str.length) === endStr) {
73518
+ this.registerIconFromSymbol(iconId, "<symbol " +
73519
+ "id=\"" + iconPrefix + iconId + "\" " +
73520
+ iconSvg.substring(startStr.length, str.length - endStr.length) +
73521
+ "</symbol>");
73522
+ return true;
73523
+ }
73524
+ else {
73525
+ return false;
73526
+ }
73527
+ };
73528
+ // TODO: remove in V2
73529
+ SvgIconRegistry.prototype.registerIconsFromFolder = function (r) {
73530
+ var _this = this;
73531
+ r.keys().forEach(function (key) {
73532
+ _this.registerIconFromSvg(key.substring(2, key.length - 4).toLowerCase(), r(key));
73533
+ });
73534
+ };
73535
+ SvgIconRegistry.prototype.registerIcons = function (icons) {
73536
+ for (var iconId in icons) {
73537
+ this.registerIconFromSvg(iconId, icons[iconId]);
73538
+ }
73539
+ this.updateMarkup();
73540
+ };
73541
+ SvgIconRegistry.prototype.iconsRenderedHtml = function () {
73542
+ var _this = this;
73543
+ return Object.keys(this.icons).map(function (icon) { return _this.icons[icon]; }).join("");
73544
+ };
73545
+ SvgIconRegistry.prototype.updateMarkup = function () {
73546
+ this.onIconsChanged.fire(this, {});
73547
+ };
73548
+ return SvgIconRegistry;
73549
+ }());
73550
+
73551
+ var SvgRegistry = new svgbundle_SvgIconRegistry();
73552
+ var SvgThemeSets = {};
73553
+ function addIconsToThemeSet(name, iconsData) {
73554
+ if (!SvgThemeSets[name]) {
73555
+ SvgThemeSets[name] = {};
73556
+ }
73557
+ var set = SvgThemeSets[name];
73558
+ for (var iconId in iconsData) {
73559
+ set[iconId] = iconsData[iconId];
73560
+ }
73561
+ }
73562
+
73501
73563
  // CONCATENATED MODULE: ./packages/survey-core/entries/chunks/core-wo-model.ts
73502
73564
  // model
73503
73565
 
@@ -74937,7 +74999,7 @@ var arabicSurveyStrings = {
74937
74999
  ok: "موافق",
74938
75000
  cancel: "إلغاء الأمر"
74939
75001
  };
74940
- surveyLocalization.setupLocale("ar", arabicSurveyStrings, "العربية", "Arabic", "rtl");
75002
+ setupLocale({ localeCode: "ar", strings: arabicSurveyStrings, nativeName: "العربية", englishName: "Arabic", rtl: true });
74941
75003
  // The following strings have been translated by a machine translation service
74942
75004
  // Remove those strings that you have corrected manually
74943
75005
  // indexText: "{0} of {1}" => "{0} من {1}"
@@ -75083,7 +75145,7 @@ var basqueSurveyStrings = {
75083
75145
  ok: "Ados",
75084
75146
  cancel: "Ezeztatu"
75085
75147
  };
75086
- surveyLocalization.setupLocale("eu", basqueSurveyStrings, "euskara", "Basque");
75148
+ setupLocale({ localeCode: "eu", strings: basqueSurveyStrings, nativeName: "euskara", englishName: "Basque" });
75087
75149
  // The following strings have been translated by a machine translation service
75088
75150
  // Remove those strings that you have corrected manually
75089
75151
  // indexText: "{0} of {1}" => "{1} {0}"
@@ -75222,7 +75284,7 @@ var bulgarianStrings = {
75222
75284
  ok: "Добре",
75223
75285
  cancel: "Отмени"
75224
75286
  };
75225
- surveyLocalization.setupLocale("bg", bulgarianStrings, "български", "Bulgarian");
75287
+ setupLocale({ localeCode: "bg", strings: bulgarianStrings, nativeName: "български", englishName: "Bulgarian" });
75226
75288
  // The following strings have been translated by a machine translation service
75227
75289
  // Remove those strings that you have corrected manually
75228
75290
  // indexText: "{0} of {1}" => "{0} на {1}"
@@ -75368,7 +75430,7 @@ var catalanSurveyStrings = {
75368
75430
  ok: "D'ACORD",
75369
75431
  cancel: "Cancel·lar"
75370
75432
  };
75371
- surveyLocalization.setupLocale("ca", catalanSurveyStrings, "català", "Catalan");
75433
+ setupLocale({ localeCode: "ca", strings: catalanSurveyStrings, nativeName: "català", englishName: "Catalan" });
75372
75434
  // The following strings have been translated by a machine translation service
75373
75435
  // Remove those strings that you have corrected manually
75374
75436
  // previewText: "Preview" => "Preestrena"
@@ -75554,7 +75616,7 @@ var croatianStrings = {
75554
75616
  ok: "OK",
75555
75617
  cancel: "Otkazati"
75556
75618
  };
75557
- surveyLocalization.setupLocale("hr", croatianStrings, "hrvatski", "Croatian");
75619
+ setupLocale({ localeCode: "hr", strings: croatianStrings, nativeName: "hrvatski", englishName: "Croatian" });
75558
75620
  // The following strings have been translated by a machine translation service
75559
75621
  // Remove those strings that you have corrected manually
75560
75622
  // indexText: "{0} of {1}" => "{0} {1}"
@@ -75698,7 +75760,7 @@ var czechSurveyStrings = {
75698
75760
  ok: "OK",
75699
75761
  cancel: "Zrušit"
75700
75762
  };
75701
- surveyLocalization.setupLocale("cs", czechSurveyStrings, "čeština", "Czech");
75763
+ setupLocale({ localeCode: "cs", strings: czechSurveyStrings, nativeName: "čeština", englishName: "Czech" });
75702
75764
  // The following strings have been translated by a machine translation service
75703
75765
  // Remove those strings that you have corrected manually
75704
75766
  // indexText: "{0} of {1}" => "{0} z {1}"
@@ -75844,7 +75906,7 @@ var danishSurveyStrings = {
75844
75906
  ok: "OK",
75845
75907
  cancel: "Aflyse"
75846
75908
  };
75847
- surveyLocalization.setupLocale("da", danishSurveyStrings, "dansk", "Danish");
75909
+ setupLocale({ localeCode: "da", strings: danishSurveyStrings, nativeName: "dansk", englishName: "Danish" });
75848
75910
  // The following strings have been translated by a machine translation service
75849
75911
  // Remove those strings that you have corrected manually
75850
75912
  // indexText: "{0} of {1}" => "{0} af {1}"
@@ -75990,7 +76052,7 @@ var dutchSurveyStrings = {
75990
76052
  ok: "OK",
75991
76053
  cancel: "Annuleren"
75992
76054
  };
75993
- surveyLocalization.setupLocale("nl", dutchSurveyStrings, "nederlands", "Dutch");
76055
+ setupLocale({ localeCode: "nl", strings: dutchSurveyStrings, nativeName: "nederlands", englishName: "Dutch" });
75994
76056
  // The following strings have been translated by a machine translation service
75995
76057
  // Remove those strings that you have corrected manually
75996
76058
  // indexText: "{0} of {1}" => "{0} van {1}"
@@ -76031,7 +76093,7 @@ surveyLocalization.setupLocale("nl", dutchSurveyStrings, "nederlands", "Dutch");
76031
76093
  * - Copy the Dutch set once and move forward as if it are 2 totally different languages
76032
76094
  * - Override the relevant strings only
76033
76095
  */
76034
- surveyLocalization.setupLocale("nl-BE", dutchSurveyStrings, "vlaams", "Flemish");
76096
+ setupLocale({ localeCode: "nl-BE", strings: dutchSurveyStrings, nativeName: "vlaams", englishName: "Flemish" });
76035
76097
 
76036
76098
  // CONCATENATED MODULE: ./packages/survey-core/src/localization/estonian.ts
76037
76099
 
@@ -76144,7 +76206,7 @@ var estonianSurveyStrings = {
76144
76206
  ok: "OK",
76145
76207
  cancel: "Tühistama"
76146
76208
  };
76147
- surveyLocalization.setupLocale("et", estonianSurveyStrings, "eesti keel", "Estonian");
76209
+ setupLocale({ localeCode: "et", strings: estonianSurveyStrings, nativeName: "eesti keel", englishName: "Estonian" });
76148
76210
  // The following strings have been translated by a machine translation service
76149
76211
  // Remove those strings that you have corrected manually
76150
76212
  // indexText: "{0} of {1}" => "{0} {1}"
@@ -76290,7 +76352,7 @@ var finnishSurveyStrings = {
76290
76352
  ok: "OKEI",
76291
76353
  cancel: "Perua"
76292
76354
  };
76293
- surveyLocalization.setupLocale("fi", finnishSurveyStrings, "suomi", "Finnish");
76355
+ setupLocale({ localeCode: "fi", strings: finnishSurveyStrings, nativeName: "suomi", englishName: "Finnish" });
76294
76356
  // The following strings have been translated by a machine translation service
76295
76357
  // Remove those strings that you have corrected manually
76296
76358
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "Paneeli {panelIndex}"
@@ -76424,7 +76486,7 @@ var frenchSurveyStrings = {
76424
76486
  ok: "D’ACCORD",
76425
76487
  cancel: "Annuler"
76426
76488
  };
76427
- surveyLocalization.setupLocale("fr", frenchSurveyStrings, "français", "French");
76489
+ setupLocale({ localeCode: "fr", strings: frenchSurveyStrings, nativeName: "français", englishName: "French" });
76428
76490
  // The following strings have been translated by a machine translation service
76429
76491
  // Remove those strings that you have corrected manually
76430
76492
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "Panel {panelIndex}"
@@ -76558,7 +76620,7 @@ var georgianSurveyStrings = {
76558
76620
  ok: "კარგი",
76559
76621
  cancel: "გაუქმება"
76560
76622
  };
76561
- surveyLocalization.setupLocale("ka", georgianSurveyStrings, "ქართული", "Georgian");
76623
+ setupLocale({ localeCode: "ka", strings: georgianSurveyStrings, nativeName: "ქართული", englishName: "Georgian" });
76562
76624
  // The following strings have been translated by a machine translation service
76563
76625
  // Remove those strings that you have corrected manually
76564
76626
  // previewText: "Preview" => "გადახედვა"
@@ -76757,7 +76819,7 @@ var germanSurveyStrings = {
76757
76819
  ok: "OK",
76758
76820
  cancel: "Abbrechen"
76759
76821
  };
76760
- surveyLocalization.setupLocale("de", germanSurveyStrings, "deutsch", "German");
76822
+ setupLocale({ localeCode: "de", strings: germanSurveyStrings, nativeName: "deutsch", englishName: "German" });
76761
76823
  // The following strings have been translated by a machine translation service
76762
76824
  // Remove those strings that you have corrected manually
76763
76825
  // tabTitlePlaceholder: "New Panel" => "Neues Panel"// deselectAllItemText: "Deselect all" => "Alle abwählen"
@@ -76874,7 +76936,7 @@ var greekSurveyStrings = {
76874
76936
  ok: "OK",
76875
76937
  cancel: "Ακυρώνω"
76876
76938
  };
76877
- surveyLocalization.setupLocale("gr", greekSurveyStrings, "ελληνικά", "Greek");
76939
+ setupLocale({ localeCode: "gr", strings: greekSurveyStrings, nativeName: "ελληνικά", englishName: "Greek" });
76878
76940
  // The following strings have been translated by a machine translation service
76879
76941
  // Remove those strings that you have corrected manually
76880
76942
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "Πίνακας {panelIndex}"
@@ -77005,7 +77067,7 @@ var hebrewSurveyStrings = {
77005
77067
  ok: "אוקיי",
77006
77068
  cancel: "ביטל"
77007
77069
  };
77008
- surveyLocalization.setupLocale("he", hebrewSurveyStrings, "עברית", "Hebrew");
77070
+ setupLocale({ localeCode: "he", strings: hebrewSurveyStrings, nativeName: "עברית", englishName: "Hebrew", rtl: true });
77009
77071
  // The following strings have been translated by a machine translation service
77010
77072
  // Remove those strings that you have corrected manually
77011
77073
  // indexText: "{0} of {1}" => "{0} מתוך {1}"
@@ -77152,7 +77214,7 @@ var hindiStrings = {
77152
77214
  ok: "ठीक है",
77153
77215
  cancel: "रद्द करना"
77154
77216
  };
77155
- surveyLocalization.setupLocale("hi", hindiStrings, "hindi", "Hindi");
77217
+ setupLocale({ localeCode: "hi", strings: hindiStrings, nativeName: "hindi", englishName: "Hindi" });
77156
77218
  // The following strings have been translated by a machine translation service
77157
77219
  // Remove those strings that you have corrected manually
77158
77220
  // noneItemText: "None" => "कोई नहीं"
@@ -77298,7 +77360,7 @@ var hungarianSurveyStrings = {
77298
77360
  ok: "OKÉ",
77299
77361
  cancel: "Érvénytelenít"
77300
77362
  };
77301
- surveyLocalization.setupLocale("hu", hungarianSurveyStrings, "magyar", "Hungarian");
77363
+ setupLocale({ localeCode: "hu", strings: hungarianSurveyStrings, nativeName: "magyar", englishName: "Hungarian" });
77302
77364
  // The following strings have been translated by a machine translation service
77303
77365
  // Remove those strings that you have corrected manually
77304
77366
  // indexText: "{0} of {1}" => "{0} {1} közül"
@@ -77443,7 +77505,7 @@ var icelandicSurveyStrings = {
77443
77505
  ok: "ÓKEI",
77444
77506
  cancel: "Afturkalla"
77445
77507
  };
77446
- surveyLocalization.setupLocale("is", icelandicSurveyStrings, "íslenska", "Icelandic");
77508
+ setupLocale({ localeCode: "is", strings: icelandicSurveyStrings, nativeName: "íslenska", englishName: "Icelandic" });
77447
77509
  // The following strings have been translated by a machine translation service
77448
77510
  // Remove those strings that you have corrected manually
77449
77511
  // indexText: "{0} of {1}" => "{0} af {1}"
@@ -77589,7 +77651,7 @@ var indonesianStrings = {
77589
77651
  ok: "OKE",
77590
77652
  cancel: "Membatalkan"
77591
77653
  };
77592
- surveyLocalization.setupLocale("id", indonesianStrings, "bahasa indonesia", "Indonesian");
77654
+ setupLocale({ localeCode: "id", strings: indonesianStrings, nativeName: "bahasa indonesia", englishName: "Indonesian" });
77593
77655
  // The following strings have been translated by a machine translation service
77594
77656
  // Remove those strings that you have corrected manually
77595
77657
  // indexText: "{0} of {1}" => "{0} dari {1}"
@@ -77735,7 +77797,7 @@ var italianSurveyStrings = {
77735
77797
  ok: "OK",
77736
77798
  cancel: "Annulla"
77737
77799
  };
77738
- surveyLocalization.setupLocale("it", italianSurveyStrings, "italiano", "Italian");
77800
+ setupLocale({ localeCode: "it", strings: italianSurveyStrings, nativeName: "italiano", englishName: "Italian" });
77739
77801
  // The following strings have been translated by a machine translation service
77740
77802
  // Remove those strings that you have corrected manually
77741
77803
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "Pannello {panelIndex}"
@@ -77869,7 +77931,7 @@ var japaneseSurveyStrings = {
77869
77931
  ok: "わかりました",
77870
77932
  cancel: "キャンセル"
77871
77933
  };
77872
- surveyLocalization.setupLocale("ja", japaneseSurveyStrings, "日本語", "Japanese");
77934
+ setupLocale({ localeCode: "ja", strings: japaneseSurveyStrings, nativeName: "日本語", englishName: "Japanese" });
77873
77935
  // The following strings have been translated by a machine translation service
77874
77936
  // Remove those strings that you have corrected manually
77875
77937
  // indexText: "{0} of {1}" => "{1}の{0}"
@@ -78016,7 +78078,7 @@ var kazakhStrings = {
78016
78078
  ok: "ЖАҚСЫ",
78017
78079
  cancel: "Болдырмау"
78018
78080
  };
78019
- surveyLocalization.setupLocale("kk", kazakhStrings, "kazakh", "Kazakh");
78081
+ setupLocale({ localeCode: "kk", strings: kazakhStrings, nativeName: "kazakh", englishName: "Kazakh" });
78020
78082
  // The following strings have been translated by a machine translation service
78021
78083
  // Remove those strings that you have corrected manually
78022
78084
  // indexText: "{0} of {1}" => "{1} {0}"
@@ -78162,7 +78224,7 @@ var koreanStrings = {
78162
78224
  ok: "그래",
78163
78225
  cancel: "취소"
78164
78226
  };
78165
- surveyLocalization.setupLocale("ko", koreanStrings, "한국어", "Korean");
78227
+ setupLocale({ localeCode: "ko", strings: koreanStrings, nativeName: "한국어", englishName: "Korean" });
78166
78228
  // The following strings have been translated by a machine translation service
78167
78229
  // Remove those strings that you have corrected manually
78168
78230
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "패널 {panelIndex}"
@@ -78295,7 +78357,7 @@ var latvianSurveyStrings = {
78295
78357
  ok: "LABI",
78296
78358
  cancel: "Atcelt"
78297
78359
  };
78298
- surveyLocalization.setupLocale("lv", latvianSurveyStrings, "latviešu", "Latvian");
78360
+ setupLocale({ localeCode: "lv", strings: latvianSurveyStrings, nativeName: "latviešu", englishName: "Latvian" });
78299
78361
  // The following strings have been translated by a machine translation service
78300
78362
  // Remove those strings that you have corrected manually
78301
78363
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "Panelis {panelIndex}"
@@ -78429,7 +78491,7 @@ var lithuaniaSurveyStrings = {
78429
78491
  ok: "GERAI",
78430
78492
  cancel: "Atšaukti"
78431
78493
  };
78432
- surveyLocalization.setupLocale("lt", lithuaniaSurveyStrings, "lietuvių", "Lithuanian");
78494
+ setupLocale({ localeCode: "lt", strings: lithuaniaSurveyStrings, nativeName: "lietuvių", englishName: "Lithuanian" });
78433
78495
  // The following strings have been translated by a machine translation service
78434
78496
  // Remove those strings that you have corrected manually
78435
78497
  // indexText: "{0} of {1}" => "{1} {0}"
@@ -78575,7 +78637,7 @@ var macedonianSurveyStrings = {
78575
78637
  ok: "ДОБРО",
78576
78638
  cancel: "Откажи"
78577
78639
  };
78578
- surveyLocalization.setupLocale("mk", macedonianSurveyStrings, "македонски", "Macedonian");
78640
+ setupLocale({ localeCode: "mk", strings: macedonianSurveyStrings, nativeName: "македонски", englishName: "Macedonian" });
78579
78641
  // The following strings have been translated by a machine translation service
78580
78642
  // Remove those strings that you have corrected manually
78581
78643
  // indexText: "{0} of {1}" => "{0} на {1}"
@@ -78715,7 +78777,7 @@ var malaySurveyStrings = {
78715
78777
  ok: "OK",
78716
78778
  cancel: "Batal"
78717
78779
  };
78718
- surveyLocalization.setupLocale("ms", malaySurveyStrings, "melayu", "Malay");
78780
+ setupLocale({ localeCode: "ms", strings: malaySurveyStrings, nativeName: "melayu", englishName: "Malay" });
78719
78781
  // The following strings have been translated by a machine translation service
78720
78782
  // Remove those strings that you have corrected manually
78721
78783
  // indexText: "{0} of {1}" => "{0} {1}"
@@ -78851,7 +78913,7 @@ var norwegianSurveyStrings = {
78851
78913
  ok: "OK",
78852
78914
  cancel: "Annullere"
78853
78915
  };
78854
- surveyLocalization.setupLocale("no", norwegianSurveyStrings, "norsk", "Norwegian");
78916
+ setupLocale({ localeCode: "no", strings: norwegianSurveyStrings, nativeName: "norsk", englishName: "Norwegian" });
78855
78917
  // The following strings have been translated by a machine translation service
78856
78918
  // Remove those strings that you have corrected manually
78857
78919
  // indexText: "{0} of {1}" => "{0} av {1}"
@@ -78997,7 +79059,7 @@ var persianSurveyStrings = {
78997
79059
  ok: "باشه",
78998
79060
  cancel: "لغو"
78999
79061
  };
79000
- surveyLocalization.setupLocale("fa", persianSurveyStrings, "فارْسِى", "Persian");
79062
+ setupLocale({ localeCode: "fa", strings: persianSurveyStrings, nativeName: "فارْسِى", englishName: "Persian", rtl: true });
79001
79063
  // The following strings have been translated by a machine translation service
79002
79064
  // Remove those strings that you have corrected manually
79003
79065
  // indexText: "{0} of {1}" => "{0} {1}"
@@ -79143,7 +79205,7 @@ var polishSurveyStrings = {
79143
79205
  ok: "OK",
79144
79206
  cancel: "Anuluj"
79145
79207
  };
79146
- surveyLocalization.setupLocale("pl", polishSurveyStrings, "polski", "Polish");
79208
+ setupLocale({ localeCode: "pl", strings: polishSurveyStrings, nativeName: "polski", englishName: "Polish" });
79147
79209
  // The following strings have been translated by a machine translation service
79148
79210
  // Remove those strings that you have corrected manually
79149
79211
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "Panel {panelIndex}"
@@ -79277,7 +79339,7 @@ var portugueseSurveyStrings = {
79277
79339
  ok: "OKEY",
79278
79340
  cancel: "Cancelar"
79279
79341
  };
79280
- surveyLocalization.setupLocale("pt", portugueseSurveyStrings, "português", "Portuguese");
79342
+ setupLocale({ localeCode: "pt", strings: portugueseSurveyStrings, nativeName: "português", englishName: "Portuguese" });
79281
79343
  // The following strings have been translated by a machine translation service
79282
79344
  // Remove those strings that you have corrected manually
79283
79345
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "Painel {panelIndex}"
@@ -79411,7 +79473,7 @@ var portugueseBrSurveyStrings = {
79411
79473
  ok: "OKEY",
79412
79474
  cancel: "Cancelar"
79413
79475
  };
79414
- surveyLocalization.setupLocale("pt-br", portugueseBrSurveyStrings, "português brasileiro", "Brazilian Portuguese");
79476
+ setupLocale({ localeCode: "pt-br", strings: portugueseBrSurveyStrings, nativeName: "português brasileiro", englishName: "Brazilian Portuguese" });
79415
79477
  // The following strings have been translated by a machine translation service
79416
79478
  // Remove those strings that you have corrected manually
79417
79479
  // pagePrevText: "Previous" => "Anterior"
@@ -79604,7 +79666,7 @@ var romanianSurveyStrings = {
79604
79666
  ok: "OK",
79605
79667
  cancel: "Anula"
79606
79668
  };
79607
- surveyLocalization.setupLocale("ro", romanianSurveyStrings, "română", "Romanian");
79669
+ setupLocale({ localeCode: "ro", strings: romanianSurveyStrings, nativeName: "română", englishName: "Romanian" });
79608
79670
  // The following strings have been translated by a machine translation service
79609
79671
  // Remove those strings that you have corrected manually
79610
79672
  // indexText: "{0} of {1}" => "{0} de {1}"
@@ -79750,7 +79812,7 @@ var russianSurveyStrings = {
79750
79812
  ok: "Хорошо",
79751
79813
  cancel: "Отмена"
79752
79814
  };
79753
- surveyLocalization.setupLocale("ru", russianSurveyStrings, "русский", "Russian");
79815
+ setupLocale({ localeCode: "ru", strings: russianSurveyStrings, nativeName: "русский", englishName: "Russian" });
79754
79816
  // The following strings have been translated by a machine translation service
79755
79817
  // Remove those strings that you have corrected manually
79756
79818
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "Панель {panelIndex}"
@@ -79880,8 +79942,7 @@ var serbianStrings = {
79880
79942
  ok: "U redu",
79881
79943
  cancel: "Otkaži"
79882
79944
  };
79883
- //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.
79884
- surveyLocalization.setupLocale("rs", serbianStrings, "srpski", "Serbian");
79945
+ setupLocale({ localeCode: "rs", strings: serbianStrings, nativeName: "srpski", englishName: "Serbian" });
79885
79946
  // The following strings have been translated by a machine translation service
79886
79947
  // Remove those strings that you have corrected manually
79887
79948
  // indexText: "{0} of {1}" => "{0} {1}"
@@ -80021,7 +80082,7 @@ var simplifiedChineseSurveyStrings = {
80021
80082
  ok: "还行",
80022
80083
  cancel: "取消"
80023
80084
  };
80024
- surveyLocalization.setupLocale("zh-cn", simplifiedChineseSurveyStrings, "简体中文", "Simplified Chinese ");
80085
+ setupLocale({ localeCode: "zh-cn", strings: simplifiedChineseSurveyStrings, nativeName: "简体中文", englishName: "Simplified Chinese" });
80025
80086
  // The following strings have been translated by a machine translation service
80026
80087
  // Remove those strings that you have corrected manually
80027
80088
  // indexText: "{0} of {1}" => "{1}{0}"
@@ -80161,7 +80222,7 @@ var slovakSurveyStrings = {
80161
80222
  ok: "OK",
80162
80223
  cancel: "Zrušiť"
80163
80224
  };
80164
- surveyLocalization.setupLocale("sk", slovakSurveyStrings, "slovak", "Slovak");
80225
+ setupLocale({ localeCode: "sk", strings: slovakSurveyStrings, nativeName: "slovak", englishName: "Slovak" });
80165
80226
  // The following strings have been translated by a machine translation service
80166
80227
  // Remove those strings that you have corrected manually
80167
80228
  // indexText: "{0} of {1}" => "{0} {1}"
@@ -80297,7 +80358,7 @@ var spanishSurveyStrings = {
80297
80358
  ok: "De acuerdo",
80298
80359
  cancel: "Cancelar"
80299
80360
  };
80300
- surveyLocalization.setupLocale("es", spanishSurveyStrings, "español", "Spanish");
80361
+ setupLocale({ localeCode: "es", strings: spanishSurveyStrings, nativeName: "español", englishName: "Spanish" });
80301
80362
  // The following strings have been translated by a machine translation service
80302
80363
  // Remove those strings that you have corrected manually
80303
80364
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "Panel {panelIndex}"
@@ -80431,7 +80492,7 @@ var swahiliStrings = {
80431
80492
  ok: "Sawa kabisa",
80432
80493
  cancel: "Katisha"
80433
80494
  };
80434
- surveyLocalization.setupLocale("sw", swahiliStrings, "swahili", "Swahili");
80495
+ setupLocale({ localeCode: "sw", strings: swahiliStrings, nativeName: "swahili", englishName: "Swahili" });
80435
80496
  // The following strings have been translated by a machine translation service
80436
80497
  // Remove those strings that you have corrected manually
80437
80498
  // indexText: "{0} of {1}" => "{0} ya {1}"
@@ -80577,7 +80638,7 @@ var swedishSurveyStrings = {
80577
80638
  ok: "OKEJ",
80578
80639
  cancel: "Annullera"
80579
80640
  };
80580
- surveyLocalization.setupLocale("sv", swedishSurveyStrings, "svenska", "Swedish");
80641
+ setupLocale({ localeCode: "sv", strings: swedishSurveyStrings, nativeName: "svenska", englishName: "Swedish" });
80581
80642
  // The following strings have been translated by a machine translation service
80582
80643
  // Remove those strings that you have corrected manually
80583
80644
  // panelDynamicTabTextFormat: "Panel {panelIndex}" => "Panel {panelIndex}"
@@ -80691,7 +80752,7 @@ var tajikSurveyStrings = {
80691
80752
  // noEntriesText: "There are no entries yet.\nClick the button below to add a new entry.",
80692
80753
  // more: "More"
80693
80754
  };
80694
- surveyLocalization.setupLocale("tg", tajikSurveyStrings, "тоҷикӣ", "Tajik");
80755
+ setupLocale({ localeCode: "tg", strings: tajikSurveyStrings, nativeName: "тоҷикӣ", englishName: "Tajik" });
80695
80756
 
80696
80757
  // CONCATENATED MODULE: ./packages/survey-core/src/localization/thai.ts
80697
80758
 
@@ -80804,7 +80865,7 @@ var thaiStrings = {
80804
80865
  ok: "ตกลง, ได้",
80805
80866
  cancel: "ยกเลิก"
80806
80867
  };
80807
- surveyLocalization.setupLocale("th", thaiStrings, "ไทย", "Thai");
80868
+ setupLocale({ localeCode: "th", strings: thaiStrings, nativeName: "ไทย", englishName: "Thai" });
80808
80869
  // The following strings have been translated by a machine translation service
80809
80870
  // Remove those strings that you have corrected manually
80810
80871
  // indexText: "{0} of {1}" => "{0} of {1}"
@@ -80949,7 +81010,7 @@ var traditionalChineseSurveyStrings = {
80949
81010
  ok: "還行",
80950
81011
  cancel: "取消"
80951
81012
  };
80952
- surveyLocalization.setupLocale("zh-tw", traditionalChineseSurveyStrings, "繁體中文", "Tranditional Chinese");
81013
+ setupLocale({ localeCode: "zh-tw", strings: traditionalChineseSurveyStrings, nativeName: "繁體中文", englishName: "Tranditional Chinese" });
80953
81014
  // The following strings have been translated by a machine translation service
80954
81015
  // Remove those strings that you have corrected manually
80955
81016
  // previewText: "Preview" => "預覽"
@@ -81129,7 +81190,7 @@ var turkishSurveyStrings = {
81129
81190
  ok: "TAMAM",
81130
81191
  cancel: "İptal"
81131
81192
  };
81132
- surveyLocalization.setupLocale("tr", turkishSurveyStrings, "türkçe", "Turkish");
81193
+ setupLocale({ localeCode: "tr", strings: turkishSurveyStrings, nativeName: "türkçe", englishName: "Turkish" });
81133
81194
  // The following strings have been translated by a machine translation service
81134
81195
  // Remove those strings that you have corrected manually
81135
81196
  // takePhotoCaption: "Take Photo" => "Fotoğraf Çekin"
@@ -81256,7 +81317,7 @@ var ukrainianSurveyStrings = {
81256
81317
  ok: "ГАРАЗД",
81257
81318
  cancel: "Скасувати"
81258
81319
  };
81259
- surveyLocalization.setupLocale("ua", ukrainianSurveyStrings, "українська", "Ukrainian");
81320
+ setupLocale({ localeCode: "ua", strings: ukrainianSurveyStrings, nativeName: "українська", englishName: "Ukrainian" });
81260
81321
  // The following strings have been translated by a machine translation service
81261
81322
  // Remove those strings that you have corrected manually
81262
81323
  // indexText: "{0} of {1}" => "{0} {1}"
@@ -81401,8 +81462,7 @@ var vietnameseSurveyStrings = {
81401
81462
  ok: "OK",
81402
81463
  cancel: "Hủy"
81403
81464
  };
81404
- //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.
81405
- surveyLocalization.setupLocale("vi", vietnameseSurveyStrings, "việt nam", "Vietnamese");
81465
+ setupLocale({ localeCode: "vi", strings: vietnameseSurveyStrings, nativeName: "việt nam", englishName: "Vietnamese" });
81406
81466
  // The following strings have been translated by a machine translation service
81407
81467
  // Remove those strings that you have corrected manually
81408
81468
  // indexText: "{0} of {1}" => "{0} của {1}"
@@ -81547,7 +81607,7 @@ var welshSurveyStrings = {
81547
81607
  ok: "OCÊ",
81548
81608
  cancel: "Canslo"
81549
81609
  };
81550
- surveyLocalization.setupLocale("cy", welshSurveyStrings, "cymraeg", "Welsh");
81610
+ setupLocale({ localeCode: "cy", strings: welshSurveyStrings, nativeName: "cymraeg", englishName: "Welsh" });
81551
81611
  // The following strings have been translated by a machine translation service
81552
81612
  // Remove those strings that you have corrected manually
81553
81613
  // indexText: "{0} of {1}" => "{0} o {1}"
@@ -81692,7 +81752,7 @@ var teluguStrings = {
81692
81752
  ok: "సరే",
81693
81753
  cancel: "రద్దు"
81694
81754
  };
81695
- surveyLocalization.setupLocale("tel", teluguStrings, "telugu", "Telugu");
81755
+ setupLocale({ localeCode: "tel", strings: teluguStrings, nativeName: "telugu", englishName: "Telugu" });
81696
81756
  // The following strings have been translated by a machine translation service
81697
81757
  // Remove those strings that you have corrected manually
81698
81758
  // noneItemText: "None" => "ఎవరు కాదు"
@@ -81841,7 +81901,7 @@ var philippinesStrings = {
81841
81901
  // Uncomment the lines below if you create a custom dictionary.
81842
81902
  // Replace "en" with a custom locale code (for example, "fr" or "de"),
81843
81903
  // Replace `englishStrings` with the name of the variable that contains the custom dictionary.
81844
- surveyLocalization.setupLocale("fil", philippinesStrings, "filipino", "Filipino");
81904
+ setupLocale({ localeCode: "fil", strings: philippinesStrings, nativeName: "filipino", englishName: "Filipino" });
81845
81905
  // The following strings have been translated by a machine translation service
81846
81906
  // Remove those strings that you have corrected manually
81847
81907
  // tabTitlePlaceholder: "New Panel" => "Bagong Panel"// deselectAllItemText: "Deselect all" => "Alisin ang pagpili ng lahat"
@@ -83427,7 +83487,7 @@ var title_element_TitleElement = /** @class */ (function (_super) {
83427
83487
  if (!this.element.getCssTitleExpandableSvg())
83428
83488
  return null;
83429
83489
  var iconName = this.element.isExpanded ? "icon-collapse-16x16" : "icon-expand-16x16";
83430
- return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(svg_icon_SvgIcon, { className: this.element.getCssTitleExpandableSvg(), iconName: iconName, size: 16 });
83490
+ return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(svg_icon_SvgIcon, { className: this.element.getCssTitleExpandableSvg(), iconName: iconName, size: "auto" });
83431
83491
  };
83432
83492
  TitleElement.prototype.render = function () {
83433
83493
  var element = this.element;
@@ -83539,6 +83599,7 @@ var text_area_TextAreaComponent = /** @class */ (function (_super) {
83539
83599
  function TextAreaComponent(props) {
83540
83600
  var _this = _super.call(this, props) || this;
83541
83601
  _this.initialValue = _this.viewModel.getTextValue() || "";
83602
+ _this.textareaRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createRef();
83542
83603
  return _this;
83543
83604
  }
83544
83605
  Object.defineProperty(TextAreaComponent.prototype, "viewModel", {
@@ -83551,9 +83612,20 @@ var text_area_TextAreaComponent = /** @class */ (function (_super) {
83551
83612
  TextAreaComponent.prototype.canRender = function () {
83552
83613
  return !!this.viewModel.question;
83553
83614
  };
83615
+ TextAreaComponent.prototype.componentDidMount = function () {
83616
+ _super.prototype.componentDidMount.call(this);
83617
+ var el = this.textareaRef.current;
83618
+ if (!!el) {
83619
+ this.viewModel.setElement(el);
83620
+ }
83621
+ };
83622
+ TextAreaComponent.prototype.componentWillUnmount = function () {
83623
+ _super.prototype.componentWillUnmount.call(this);
83624
+ this.viewModel.resetElement();
83625
+ };
83554
83626
  TextAreaComponent.prototype.renderElement = function () {
83555
83627
  var _this = this;
83556
- return (external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("textarea", { id: this.viewModel.id, className: this.viewModel.className, ref: function (textarea) { return (_this.viewModel.setElement(textarea)); }, disabled: this.viewModel.isDisabledAttr, readOnly: this.viewModel.isReadOnlyAttr, rows: this.viewModel.rows, cols: this.viewModel.cols, placeholder: this.viewModel.placeholder, maxLength: this.viewModel.maxLength, defaultValue: this.initialValue, onChange: function (event) { _this.viewModel.onTextAreaInput(event); }, onFocus: function (event) { _this.viewModel.onTextAreaFocus(event); }, onBlur: function (event) { _this.viewModel.onTextAreaBlur(event); }, onKeyDown: function (event) { _this.viewModel.onTextAreaKeyDown(event); }, "aria-required": this.viewModel.ariaRequired, "aria-label": this.viewModel.ariaLabel, "aria-labelledby": this.viewModel.ariaLabelledBy, "aria-describedby": this.viewModel.ariaDescribedBy, "aria-invalid": this.viewModel.ariaInvalid, "aria-errormessage": this.viewModel.ariaErrormessage, style: { resize: this.viewModel.question.resizeStyle } }));
83628
+ return (external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("textarea", { id: this.viewModel.id, className: this.viewModel.className, ref: this.textareaRef, disabled: this.viewModel.isDisabledAttr, readOnly: this.viewModel.isReadOnlyAttr, rows: this.viewModel.rows, cols: this.viewModel.cols, placeholder: this.viewModel.placeholder, maxLength: this.viewModel.maxLength, defaultValue: this.initialValue, onChange: function (event) { _this.viewModel.onTextAreaInput(event); }, onFocus: function (event) { _this.viewModel.onTextAreaFocus(event); }, onBlur: function (event) { _this.viewModel.onTextAreaBlur(event); }, onKeyDown: function (event) { _this.viewModel.onTextAreaKeyDown(event); }, "aria-required": this.viewModel.ariaRequired, "aria-label": this.viewModel.ariaLabel, "aria-labelledby": this.viewModel.ariaLabelledBy, "aria-describedby": this.viewModel.ariaDescribedBy, "aria-invalid": this.viewModel.ariaInvalid, "aria-errormessage": this.viewModel.ariaErrormessage, style: { resize: this.viewModel.question.resizeStyle } }));
83557
83629
  };
83558
83630
  return TextAreaComponent;
83559
83631
  }(reactquestion_element_SurveyElementBase));
@@ -84481,13 +84553,20 @@ var svgbundle_SvgBundleComponent = /** @class */ (function (_super) {
84481
84553
  svgbundle_extends(SvgBundleComponent, _super);
84482
84554
  function SvgBundleComponent(props) {
84483
84555
  var _this = _super.call(this, props) || this;
84556
+ _this.onIconsChanged = function () {
84557
+ if (!!_this.containerRef.current) {
84558
+ _this.containerRef.current.innerHTML = SvgRegistry.iconsRenderedHtml();
84559
+ }
84560
+ };
84484
84561
  _this.containerRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createRef();
84485
84562
  return _this;
84486
84563
  }
84487
84564
  SvgBundleComponent.prototype.componentDidMount = function () {
84488
- if (!!this.containerRef.current) {
84489
- this.containerRef.current.innerHTML = SvgRegistry.iconsRenderedHtml();
84490
- }
84565
+ this.onIconsChanged();
84566
+ SvgRegistry.onIconsChanged.add(this.onIconsChanged);
84567
+ };
84568
+ SvgBundleComponent.prototype.componentWillUnmount = function () {
84569
+ SvgRegistry.onIconsChanged.remove(this.onIconsChanged);
84491
84570
  };
84492
84571
  SvgBundleComponent.prototype.render = function () {
84493
84572
  var svgStyle = {
@@ -84603,6 +84682,22 @@ var popup_modal_PopupModal = /** @class */ (function (_super) {
84603
84682
  }(reactquestion_element_SurveyElementBase));
84604
84683
 
84605
84684
 
84685
+ // CONCATENATED MODULE: ./packages/survey-core/src/iconsV1.ts
84686
+ var iconsV1_path = __webpack_require__("./packages/survey-core/src/images-v1 sync recursive \\.svg$");
84687
+ var icons = {};
84688
+ iconsV1_path.keys().forEach(function (key) {
84689
+ icons[key.substring(2, key.length - 4).toLowerCase()] = iconsV1_path(key);
84690
+ });
84691
+
84692
+
84693
+ // CONCATENATED MODULE: ./packages/survey-core/src/iconsV2.ts
84694
+ var iconsV2_path = __webpack_require__("./packages/survey-core/src/images-v2 sync recursive \\.svg$");
84695
+ var iconsV2_icons = {};
84696
+ iconsV2_path.keys().forEach(function (key) {
84697
+ iconsV2_icons[key.substring(2, key.length - 4).toLowerCase()] = iconsV2_path(key);
84698
+ });
84699
+
84700
+
84606
84701
  // CONCATENATED MODULE: ./packages/survey-react-ui/src/reactSurvey.tsx
84607
84702
  var reactSurvey_extends = (undefined && undefined.__extends) || (function () {
84608
84703
  var extendStatics = function (d, b) {
@@ -84642,6 +84737,11 @@ var reactSurvey_assign = (undefined && undefined.__assign) || function () {
84642
84737
 
84643
84738
 
84644
84739
 
84740
+
84741
+
84742
+ addIconsToThemeSet("v1", icons);
84743
+ addIconsToThemeSet("v2", iconsV2_icons);
84744
+ SvgRegistry.registerIcons(icons);
84645
84745
  var reactSurvey_Survey = /** @class */ (function (_super) {
84646
84746
  reactSurvey_extends(Survey, _super);
84647
84747
  function Survey(props) {