survey-react 1.12.11 → 1.12.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/defaultV2.css +5 -5
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +9 -1
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +75 -57
- package/survey.react.js +281 -229
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/survey.react.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* surveyjs - Survey JavaScript library v1.12.
|
2
|
+
* surveyjs - Survey JavaScript library v1.12.12
|
3
3
|
* Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
5
5
|
*/
|
@@ -110,7 +110,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
110
110
|
/***/ (function(module, exports, __webpack_require__) {
|
111
111
|
|
112
112
|
var map = {
|
113
|
-
"./ChooseFile.svg": "./packages/survey-core/src/images-v1/ChooseFile.svg",
|
114
113
|
"./ModernBooleanCheckChecked.svg": "./packages/survey-core/src/images-v1/ModernBooleanCheckChecked.svg",
|
115
114
|
"./ModernBooleanCheckInd.svg": "./packages/survey-core/src/images-v1/ModernBooleanCheckInd.svg",
|
116
115
|
"./ModernBooleanCheckUnchecked.svg": "./packages/survey-core/src/images-v1/ModernBooleanCheckUnchecked.svg",
|
@@ -194,18 +193,6 @@ webpackContext.id = "./packages/survey-core/src/images-v1 sync recursive \\.svg$
|
|
194
193
|
|
195
194
|
/***/ }),
|
196
195
|
|
197
|
-
/***/ "./packages/survey-core/src/images-v1/ChooseFile.svg":
|
198
|
-
/*!***********************************************************!*\
|
199
|
-
!*** ./packages/survey-core/src/images-v1/ChooseFile.svg ***!
|
200
|
-
\***********************************************************/
|
201
|
-
/*! no static exports found */
|
202
|
-
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
203
|
-
/***/ (function(module, exports) {
|
204
|
-
|
205
|
-
module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M22 9V7C22 5.9 21.1 5 20 5H12L10 3H4C2.9 3 2 3.9 2 5V9V10V21H22L24 9H22ZM4 5H9.2L10.6 6.4L11.2 7H12H20V9H4V5ZM20.3 19H4V11H21.6L20.3 19Z\"></path></svg>"
|
206
|
-
|
207
|
-
/***/ }),
|
208
|
-
|
209
196
|
/***/ "./packages/survey-core/src/images-v1/ModernBooleanCheckChecked.svg":
|
210
197
|
/*!**************************************************************************!*\
|
211
198
|
!*** ./packages/survey-core/src/images-v1/ModernBooleanCheckChecked.svg ***!
|
@@ -923,7 +910,6 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
923
910
|
/***/ (function(module, exports, __webpack_require__) {
|
924
911
|
|
925
912
|
var map = {
|
926
|
-
"./ChooseFile.svg": "./packages/survey-core/src/images-v2/ChooseFile.svg",
|
927
913
|
"./ModernBooleanCheckChecked.svg": "./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg",
|
928
914
|
"./ModernBooleanCheckInd.svg": "./packages/survey-core/src/images-v2/ModernBooleanCheckInd.svg",
|
929
915
|
"./ModernBooleanCheckUnchecked.svg": "./packages/survey-core/src/images-v2/ModernBooleanCheckUnchecked.svg",
|
@@ -1007,18 +993,6 @@ webpackContext.id = "./packages/survey-core/src/images-v2 sync recursive \\.svg$
|
|
1007
993
|
|
1008
994
|
/***/ }),
|
1009
995
|
|
1010
|
-
/***/ "./packages/survey-core/src/images-v2/ChooseFile.svg":
|
1011
|
-
/*!***********************************************************!*\
|
1012
|
-
!*** ./packages/survey-core/src/images-v2/ChooseFile.svg ***!
|
1013
|
-
\***********************************************************/
|
1014
|
-
/*! no static exports found */
|
1015
|
-
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
1016
|
-
/***/ (function(module, exports) {
|
1017
|
-
|
1018
|
-
module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M22 9V7C22 5.9 21.1 5 20 5H12L10 3H4C2.9 3 2 3.9 2 5V9V10V21H22L24 9H22ZM4 5H9.2L10.6 6.4L11.2 7H12H20V9H4V5ZM20.3 19H4V11H21.6L20.3 19Z\"></path></svg>"
|
1019
|
-
|
1020
|
-
/***/ }),
|
1021
|
-
|
1022
996
|
/***/ "./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg":
|
1023
997
|
/*!**************************************************************************!*\
|
1024
998
|
!*** ./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg ***!
|
@@ -1729,9 +1703,9 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
1729
1703
|
|
1730
1704
|
/***/ "./src/entries/react.ts":
|
1731
1705
|
/*!********************************************!*\
|
1732
|
-
!*** ./src/entries/react.ts +
|
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,
|
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__, "
|
1956
|
-
__webpack_require__.d(__webpack_exports__, "
|
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
|
}
|
@@ -2723,7 +2714,7 @@ if (!String.prototype["format"]) {
|
|
2723
2714
|
|
2724
2715
|
// CONCATENATED MODULE: ./packages/survey-core/src/localization/english.ts
|
2725
2716
|
// Uncomment the line below if you create a custom dictionary
|
2726
|
-
// import {
|
2717
|
+
// import { setupLocale } from "survey-core";
|
2727
2718
|
var englishStrings = {
|
2728
2719
|
pagePrevText: "Previous",
|
2729
2720
|
pageNextText: "Next",
|
@@ -2836,7 +2827,7 @@ var englishStrings = {
|
|
2836
2827
|
// Uncomment the lines below if you create a custom dictionary.
|
2837
2828
|
// Replace "en" with a custom locale code (for example, "fr" or "de"),
|
2838
2829
|
// Replace `englishStrings` with the name of the variable that contains the custom dictionary.
|
2839
|
-
//
|
2830
|
+
//setupLocale({ localeCode: "en", strings: englishStrings, nativeName: "English", englishName: "English" });
|
2840
2831
|
|
2841
2832
|
// CONCATENATED MODULE: ./packages/survey-core/src/surveyStrings.ts
|
2842
2833
|
|
@@ -2955,6 +2946,9 @@ function getLocaleString(strName, locale) {
|
|
2955
2946
|
if (locale === void 0) { locale = null; }
|
2956
2947
|
return surveyLocalization.getString(strName, locale);
|
2957
2948
|
}
|
2949
|
+
function setupLocale(localeConfig) {
|
2950
|
+
surveyLocalization.setupLocale(localeConfig.localeCode, localeConfig.strings, localeConfig.nativeName, localeConfig.englishName, localeConfig.rtl ? "rtl" : undefined);
|
2951
|
+
}
|
2958
2952
|
var surveyStrings = englishStrings;
|
2959
2953
|
surveyLocalization.locales["en"] = englishStrings;
|
2960
2954
|
surveyLocalization.localeNames["en"] = "english";
|
@@ -5559,14 +5553,14 @@ function getDate(params) {
|
|
5559
5553
|
return null;
|
5560
5554
|
if (!params[0])
|
5561
5555
|
return null;
|
5562
|
-
return
|
5556
|
+
return createDate("function-getDate", params[0]);
|
5563
5557
|
}
|
5564
5558
|
functionsfactory_FunctionFactory.Instance.register("getDate", getDate);
|
5565
5559
|
function dateDiffMonths(date1Param, date2Param, type) {
|
5566
5560
|
if (type === "days")
|
5567
5561
|
return diffDays([date1Param, date2Param]);
|
5568
|
-
var date1 =
|
5569
|
-
var date2 =
|
5562
|
+
var date1 = createDate("function-dateDiffMonths", date1Param);
|
5563
|
+
var date2 = createDate("function-dateDiffMonths", date2Param);
|
5570
5564
|
var age = date2.getFullYear() - date1.getFullYear();
|
5571
5565
|
type = type || "years";
|
5572
5566
|
var ageInMonths = age * 12 + date2.getMonth() - date1.getMonth();
|
@@ -5575,12 +5569,12 @@ function dateDiffMonths(date1Param, date2Param, type) {
|
|
5575
5569
|
}
|
5576
5570
|
return type === "months" ? ageInMonths : ~~(ageInMonths / 12);
|
5577
5571
|
}
|
5578
|
-
function
|
5572
|
+
function functionsfactory_age(params) {
|
5579
5573
|
if (!Array.isArray(params) || params.length < 1 || !params[0])
|
5580
5574
|
return null;
|
5581
5575
|
return dateDiffMonths(params[0], undefined, (params.length > 1 ? params[1] : "") || "years");
|
5582
5576
|
}
|
5583
|
-
functionsfactory_FunctionFactory.Instance.register("age",
|
5577
|
+
functionsfactory_FunctionFactory.Instance.register("age", functionsfactory_age);
|
5584
5578
|
function dateDiff(params) {
|
5585
5579
|
if (!Array.isArray(params) || params.length < 2 || !params[0] || !params[1])
|
5586
5580
|
return null;
|
@@ -5631,11 +5625,11 @@ function isDisplayMode() {
|
|
5631
5625
|
}
|
5632
5626
|
functionsfactory_FunctionFactory.Instance.register("isDisplayMode", isDisplayMode);
|
5633
5627
|
function currentDate() {
|
5634
|
-
return
|
5628
|
+
return createDate("function-currentDate");
|
5635
5629
|
}
|
5636
5630
|
functionsfactory_FunctionFactory.Instance.register("currentDate", currentDate);
|
5637
5631
|
function today(params) {
|
5638
|
-
var res =
|
5632
|
+
var res = createDate("function-today");
|
5639
5633
|
if (settings.localization.useLocalTimeZone) {
|
5640
5634
|
res.setHours(0, 0, 0, 0);
|
5641
5635
|
}
|
@@ -5651,11 +5645,11 @@ functionsfactory_FunctionFactory.Instance.register("today", today);
|
|
5651
5645
|
function getYear(params) {
|
5652
5646
|
if (params.length !== 1 || !params[0])
|
5653
5647
|
return undefined;
|
5654
|
-
return
|
5648
|
+
return createDate("function-getYear", params[0]).getFullYear();
|
5655
5649
|
}
|
5656
5650
|
functionsfactory_FunctionFactory.Instance.register("getYear", getYear);
|
5657
5651
|
function currentYear() {
|
5658
|
-
return
|
5652
|
+
return createDate("function-currentYear").getFullYear();
|
5659
5653
|
}
|
5660
5654
|
functionsfactory_FunctionFactory.Instance.register("currentYear", currentYear);
|
5661
5655
|
function diffDays(params) {
|
@@ -5663,36 +5657,36 @@ function diffDays(params) {
|
|
5663
5657
|
return 0;
|
5664
5658
|
if (!params[0] || !params[1])
|
5665
5659
|
return 0;
|
5666
|
-
var date1 =
|
5667
|
-
var date2 =
|
5660
|
+
var date1 = createDate("function-diffDays", params[0]);
|
5661
|
+
var date2 = createDate("function-diffDays", params[1]);
|
5668
5662
|
var diffTime = Math.abs(date2 - date1);
|
5669
5663
|
return Math.ceil(diffTime / (1000 * 60 * 60 * 24));
|
5670
5664
|
}
|
5671
5665
|
functionsfactory_FunctionFactory.Instance.register("diffDays", diffDays);
|
5672
|
-
function dateFromFirstParameterOrToday(params) {
|
5666
|
+
function dateFromFirstParameterOrToday(name, params) {
|
5673
5667
|
var date = today(undefined);
|
5674
5668
|
if (params && params[0]) {
|
5675
|
-
date =
|
5669
|
+
date = createDate("function-" + name, params[0]);
|
5676
5670
|
}
|
5677
5671
|
return date;
|
5678
5672
|
}
|
5679
5673
|
function functionsfactory_year(params) {
|
5680
|
-
var date = dateFromFirstParameterOrToday(params);
|
5674
|
+
var date = dateFromFirstParameterOrToday("year", params);
|
5681
5675
|
return date.getFullYear();
|
5682
5676
|
}
|
5683
5677
|
functionsfactory_FunctionFactory.Instance.register("year", functionsfactory_year);
|
5684
5678
|
function functionsfactory_month(params) {
|
5685
|
-
var date = dateFromFirstParameterOrToday(params);
|
5679
|
+
var date = dateFromFirstParameterOrToday("month", params);
|
5686
5680
|
return date.getMonth() + 1;
|
5687
5681
|
}
|
5688
5682
|
functionsfactory_FunctionFactory.Instance.register("month", functionsfactory_month);
|
5689
5683
|
function day(params) {
|
5690
|
-
var date = dateFromFirstParameterOrToday(params);
|
5684
|
+
var date = dateFromFirstParameterOrToday("day", params);
|
5691
5685
|
return date.getDate();
|
5692
5686
|
}
|
5693
5687
|
functionsfactory_FunctionFactory.Instance.register("day", day);
|
5694
5688
|
function weekday(params) {
|
5695
|
-
var date = dateFromFirstParameterOrToday(params);
|
5689
|
+
var date = dateFromFirstParameterOrToday("weekday", params);
|
5696
5690
|
return date.getDay();
|
5697
5691
|
}
|
5698
5692
|
functionsfactory_FunctionFactory.Instance.register("weekday", weekday);
|
@@ -6330,7 +6324,7 @@ var expressions_OperandMaker = /** @class */ (function () {
|
|
6330
6324
|
};
|
6331
6325
|
OperandMaker.convertValForDateCompare = function (val, second) {
|
6332
6326
|
if (second instanceof Date && typeof val === "string") {
|
6333
|
-
var res =
|
6327
|
+
var res = createDate("expression-operand", val);
|
6334
6328
|
res.setHours(0, 0, 0);
|
6335
6329
|
return res;
|
6336
6330
|
}
|
@@ -15528,8 +15522,14 @@ var localizablestring_LocalizableString = /** @class */ (function () {
|
|
15528
15522
|
if (!!this.sharedData)
|
15529
15523
|
return this.sharedData.getJson();
|
15530
15524
|
var keys = this.getValuesKeys();
|
15531
|
-
if (keys.length == 0)
|
15525
|
+
if (keys.length == 0) {
|
15526
|
+
if (this.serializeCallBackText) {
|
15527
|
+
var text = this.calcText();
|
15528
|
+
if (!!text)
|
15529
|
+
return text;
|
15530
|
+
}
|
15532
15531
|
return null;
|
15532
|
+
}
|
15533
15533
|
if (keys.length == 1 &&
|
15534
15534
|
keys[0] == settings.localization.defaultLocaleName &&
|
15535
15535
|
!settings.serialization.localizableStringSerializeAsObject)
|
@@ -16755,33 +16755,23 @@ var settings = {
|
|
16755
16755
|
* Nested properties:
|
16756
16756
|
*
|
16757
16757
|
* - `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`.
|
16758
|
+
* Enable this property if you want to serialize [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) instances (choice options, matrix rows, columns in a [Single-Select Matrix](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-question-model)) as objects even when they include only the `value` property. Default value: `false`.
|
16759
16759
|
*
|
16760
16760
|
* - `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`.
|
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`.
|
16762
16762
|
*
|
16763
16763
|
* - `localizableStringSerializeAsObject`: `boolean`\
|
16764
16764
|
* Enable this property if you want to serialize [`LocalizableString`](https://surveyjs.io/form-library/documentation/api-reference/localizablestring) instances as objects even when they include only a translation string for the default locale. For example, `"Custom String"` will be serialized as `{ default: "Custom String" }`. Default value: `false`.
|
16765
16765
|
*
|
16766
|
-
*
|
16767
|
-
*
|
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
|
-
* ```
|
16766
|
+
* - `matrixDropdownColumnSerializeTitle`: `boolean`\
|
16767
|
+
* Enable this property if you want to serialize the `title` property of [`MatrixDropdownColumn`](https://surveyjs.io/form-library/documentation/api-reference/multi-select-matrix-column-values) objects even when it is empty or equal to the `name` property. Default value: `false`.
|
16779
16768
|
* @see [settings.parseNumber](https://surveyjs.io/form-library/documentation/api-reference/settings#parseNumber)
|
16780
16769
|
*/
|
16781
16770
|
serialization: {
|
16782
16771
|
itemValueSerializeAsObject: false,
|
16783
16772
|
itemValueSerializeDisplayText: false,
|
16784
|
-
localizableStringSerializeAsObject: false
|
16773
|
+
localizableStringSerializeAsObject: false,
|
16774
|
+
matrixDropdownColumnSerializeTitle: false
|
16785
16775
|
},
|
16786
16776
|
//#region serialization section, Obsolete properties
|
16787
16777
|
get itemValueAlwaysSerializeAsObject() { return this.serialization.itemValueSerializeAsObject; },
|
@@ -17344,6 +17334,10 @@ var settings = {
|
|
17344
17334
|
* ```
|
17345
17335
|
*/
|
17346
17336
|
storeUtcDates: false,
|
17337
|
+
// @param reason "function-[functionname]", "question-[questionname]", "expression-operand"
|
17338
|
+
onDateCreated: function (newDate, reason, val) {
|
17339
|
+
return newDate;
|
17340
|
+
},
|
17347
17341
|
/**
|
17348
17342
|
* A function that allows you to define custom parsing rules for numbers represented as string values.
|
17349
17343
|
*
|
@@ -17368,7 +17362,6 @@ var settings = {
|
|
17368
17362
|
* @see [settings.serialization](https://surveyjs.io/form-library/documentation/api-reference/settings#serialization)
|
17369
17363
|
*/
|
17370
17364
|
parseNumber: function (stringValue, numericValue) { return numericValue; },
|
17371
|
-
useLegacyIcons: true
|
17372
17365
|
};
|
17373
17366
|
|
17374
17367
|
// CONCATENATED MODULE: ./packages/survey-core/src/survey-error.ts
|
@@ -22029,7 +22022,7 @@ var question_Question = /** @class */ (function (_super) {
|
|
22029
22022
|
get: function () {
|
22030
22023
|
if (this.isNewA11yStructure)
|
22031
22024
|
return null;
|
22032
|
-
if (this.hasTitle) {
|
22025
|
+
if (this.hasTitle && this.hasDescription) {
|
22033
22026
|
return this.ariaDescriptionId;
|
22034
22027
|
}
|
22035
22028
|
else {
|
@@ -22097,7 +22090,7 @@ var question_Question = /** @class */ (function (_super) {
|
|
22097
22090
|
});
|
22098
22091
|
Object.defineProperty(Question.prototype, "a11y_input_ariaDescribedBy", {
|
22099
22092
|
get: function () {
|
22100
|
-
if (this.hasTitle && !this.parentQuestion) {
|
22093
|
+
if (this.hasTitle && !this.parentQuestion && this.hasDescription) {
|
22101
22094
|
return this.ariaDescriptionId;
|
22102
22095
|
}
|
22103
22096
|
else {
|
@@ -26081,7 +26074,7 @@ var question_expression_QuestionExpressionModel = /** @class */ (function (_supe
|
|
26081
26074
|
};
|
26082
26075
|
QuestionExpressionModel.prototype.getValueAsStr = function (val) {
|
26083
26076
|
if (this.displayStyle == "date") {
|
26084
|
-
var d =
|
26077
|
+
var d = createDate("question-expression", val);
|
26085
26078
|
if (!!d && !!d.toLocaleDateString)
|
26086
26079
|
return d.toLocaleDateString();
|
26087
26080
|
}
|
@@ -27242,6 +27235,9 @@ var question_matrixdropdowncolumn_MatrixDropdownColumn = /** @class */ (function
|
|
27242
27235
|
else {
|
27243
27236
|
this.templateQuestion.locTitle.strChanged();
|
27244
27237
|
}
|
27238
|
+
if (settings.serialization.matrixDropdownColumnSerializeTitle) {
|
27239
|
+
this.templateQuestion.locTitle.serializeCallBackText = true;
|
27240
|
+
}
|
27245
27241
|
this.templateQuestion.onPropertyChanged.add(function (sender, options) {
|
27246
27242
|
_this.propertyValueChanged(options.name, options.oldValue, options.newValue, options.arrayChanges, options.target);
|
27247
27243
|
});
|
@@ -39928,82 +39924,6 @@ var surveyToc_TOCModel = /** @class */ (function () {
|
|
39928
39924
|
}());
|
39929
39925
|
|
39930
39926
|
|
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
39927
|
// CONCATENATED MODULE: ./packages/survey-core/src/survey.ts
|
40008
39928
|
var survey_extends = (undefined && undefined.__extends) || (function () {
|
40009
39929
|
var extendStatics = function (d, b) {
|
@@ -40052,7 +39972,6 @@ var survey_decorate = (undefined && undefined.__decorate) || function (decorator
|
|
40052
39972
|
|
40053
39973
|
|
40054
39974
|
|
40055
|
-
|
40056
39975
|
/**
|
40057
39976
|
* The `SurveyModel` object contains properties and methods that allow you to control the survey and access its elements.
|
40058
39977
|
*
|
@@ -41008,7 +40927,6 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
41008
40927
|
data: _this.navigationBar
|
41009
40928
|
});
|
41010
40929
|
_this.locTitle.onStringChanged.add(function () { return _this.titleIsEmpty = _this.locTitle.isEmpty; });
|
41011
|
-
_this.registerIcons();
|
41012
40930
|
return _this;
|
41013
40931
|
}
|
41014
40932
|
Object.defineProperty(SurveyModel.prototype, "platformName", {
|
@@ -48588,16 +48506,6 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
48588
48506
|
}
|
48589
48507
|
}
|
48590
48508
|
};
|
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
48509
|
SurveyModel.TemplateRendererComponentName = "sv-template-renderer";
|
48602
48510
|
// private static stylesManager: StylesManager = null;
|
48603
48511
|
SurveyModel.platform = "unknown";
|
@@ -55355,16 +55263,19 @@ var question_text_QuestionTextModel = /** @class */ (function (_super) {
|
|
55355
55263
|
QuestionTextModel.prototype.hasToConvertToUTC = function (val) {
|
55356
55264
|
return settings.storeUtcDates && this.isDateTimeLocaleType() && !!val;
|
55357
55265
|
};
|
55266
|
+
QuestionTextModel.prototype.createDate = function (val) {
|
55267
|
+
return createDate("question-text", val);
|
55268
|
+
};
|
55358
55269
|
QuestionTextModel.prototype.valueForSurveyCore = function (val) {
|
55359
55270
|
if (this.hasToConvertToUTC(val)) {
|
55360
|
-
val =
|
55271
|
+
val = this.createDate(val).toISOString();
|
55361
55272
|
}
|
55362
55273
|
return _super.prototype.valueForSurveyCore.call(this, val);
|
55363
55274
|
};
|
55364
55275
|
QuestionTextModel.prototype.valueFromDataCore = function (val) {
|
55365
55276
|
if (this.hasToConvertToUTC(val)) {
|
55366
|
-
var d =
|
55367
|
-
var locale_d =
|
55277
|
+
var d = this.createDate(val);
|
55278
|
+
var locale_d = this.createDate(d.getTime() - d.getTimezoneOffset() * 60 * 1000);
|
55368
55279
|
var res = locale_d.toISOString();
|
55369
55280
|
val = res.substring(0, res.length - 2);
|
55370
55281
|
}
|
@@ -55457,7 +55368,7 @@ var question_text_QuestionTextModel = /** @class */ (function (_super) {
|
|
55457
55368
|
QuestionTextModel.prototype.getCalculatedMinMax = function (minMax) {
|
55458
55369
|
if (this.isValueEmpty(minMax))
|
55459
55370
|
return minMax;
|
55460
|
-
return this.isDateInputType ?
|
55371
|
+
return this.isDateInputType ? this.createDate(minMax) : minMax;
|
55461
55372
|
};
|
55462
55373
|
QuestionTextModel.prototype.setRenderedMinMax = function (values, properties) {
|
55463
55374
|
var _this = this;
|
@@ -55551,7 +55462,7 @@ var question_text_QuestionTextModel = /** @class */ (function (_super) {
|
|
55551
55462
|
return helpers_Helpers.isNumber(newValue) ? helpers_Helpers.getNumber(newValue) : "";
|
55552
55463
|
}
|
55553
55464
|
if (this.inputType === "month") {
|
55554
|
-
var d =
|
55465
|
+
var d = this.createDate(newValue);
|
55555
55466
|
var isUtc = d.toISOString().indexOf(newValue) == 0 && newValue.indexOf("T") == -1;
|
55556
55467
|
var month = isUtc ? d.getUTCMonth() : d.getMonth();
|
55557
55468
|
var year = isUtc ? d.getUTCFullYear() : d.getFullYear();
|
@@ -55672,8 +55583,9 @@ function getCorrectMinMax(obj, min, max, isMax) {
|
|
55672
55583
|
return val;
|
55673
55584
|
if (obj.inputType.indexOf("date") === 0 || obj.inputType === "month") {
|
55674
55585
|
var isMonth = obj.inputType === "month";
|
55675
|
-
var
|
55676
|
-
var
|
55586
|
+
var reason = "question-text-minmax";
|
55587
|
+
var dMin = createDate(reason, isMonth ? min + "-01" : min);
|
55588
|
+
var dMax = createDate(reason, isMonth ? max + "-01" : max);
|
55677
55589
|
if (!dMin || !dMax)
|
55678
55590
|
return val;
|
55679
55591
|
if (dMin > dMax)
|
@@ -57665,6 +57577,16 @@ var question_checkbox_QuestionCheckboxModel = /** @class */ (function (_super) {
|
|
57665
57577
|
}
|
57666
57578
|
return false;
|
57667
57579
|
};
|
57580
|
+
QuestionCheckboxModel.prototype.hasUnknownValueItem = function (val, includeOther, isFilteredChoices, checkEmptyValue) {
|
57581
|
+
if (includeOther === void 0) { includeOther = false; }
|
57582
|
+
if (isFilteredChoices === void 0) { isFilteredChoices = true; }
|
57583
|
+
if (checkEmptyValue === void 0) { checkEmptyValue = false; }
|
57584
|
+
var propName = this.valuePropertyName;
|
57585
|
+
if (!!propName && typeof val === "object" && val[propName] !== undefined) {
|
57586
|
+
val = val[propName];
|
57587
|
+
}
|
57588
|
+
return _super.prototype.hasUnknownValueItem.call(this, val, includeOther, isFilteredChoices, checkEmptyValue);
|
57589
|
+
};
|
57668
57590
|
QuestionCheckboxModel.prototype.convertFuncValuetoQuestionValue = function (val) {
|
57669
57591
|
var _this = this;
|
57670
57592
|
if (!!this.valuePropertyName && Array.isArray(val) && val.length > 0) {
|
@@ -57915,11 +57837,23 @@ var question_checkbox_QuestionCheckboxModel = /** @class */ (function (_super) {
|
|
57915
57837
|
return "";
|
57916
57838
|
return newValue[ind];
|
57917
57839
|
};
|
57840
|
+
QuestionCheckboxModel.prototype.getStoreOthersAsComment = function () {
|
57841
|
+
if (!!this.valuePropertyName)
|
57842
|
+
return false;
|
57843
|
+
return _super.prototype.getStoreOthersAsComment.call(this);
|
57844
|
+
};
|
57918
57845
|
QuestionCheckboxModel.prototype.setOtherValueIntoValue = function (newValue) {
|
57919
57846
|
var ind = this.getFirstUnknownIndex(newValue);
|
57920
57847
|
if (ind < 0)
|
57921
57848
|
return newValue;
|
57922
|
-
|
57849
|
+
var otherVal = this.otherItem.value;
|
57850
|
+
var propName = this.valuePropertyName;
|
57851
|
+
if (propName) {
|
57852
|
+
var obj = {};
|
57853
|
+
obj[propName] = otherVal;
|
57854
|
+
otherVal = obj;
|
57855
|
+
}
|
57856
|
+
newValue.splice(ind, 1, otherVal);
|
57923
57857
|
return newValue;
|
57924
57858
|
};
|
57925
57859
|
QuestionCheckboxModel.prototype.getFirstUnknownIndex = function (newValue) {
|
@@ -58738,9 +58672,11 @@ var question_tagbox_QuestionTagboxModel = /** @class */ (function (_super) {
|
|
58738
58672
|
this.onOpened.fire(this, { question: this, choices: this.choices });
|
58739
58673
|
};
|
58740
58674
|
QuestionTagboxModel.prototype.hasUnknownValue = function (val, includeOther, isFilteredChoices, checkEmptyValue) {
|
58741
|
-
if (
|
58675
|
+
if (includeOther === void 0) { includeOther = false; }
|
58676
|
+
if (isFilteredChoices === void 0) { isFilteredChoices = true; }
|
58677
|
+
if (checkEmptyValue === void 0) { checkEmptyValue = false; }
|
58678
|
+
if (this.choicesLazyLoadEnabled)
|
58742
58679
|
return false;
|
58743
|
-
}
|
58744
58680
|
return _super.prototype.hasUnknownValue.call(this, val, includeOther, isFilteredChoices, checkEmptyValue);
|
58745
58681
|
};
|
58746
58682
|
QuestionTagboxModel.prototype.needConvertRenderedOtherToDataValue = function () {
|
@@ -66067,8 +66003,8 @@ Serializer.addClass("signaturepad", [
|
|
66067
66003
|
default: "png",
|
66068
66004
|
choices: [
|
66069
66005
|
{ value: "png", text: "PNG" },
|
66070
|
-
{ value: "
|
66071
|
-
{ value: "
|
66006
|
+
{ value: "jpeg", text: "JPEG" },
|
66007
|
+
{ value: "svg", text: "SVG" },
|
66072
66008
|
],
|
66073
66009
|
onSettingValue: function (obj, val) {
|
66074
66010
|
return correctFormatData(val);
|
@@ -72059,8 +71995,8 @@ Serializer.addClass("currencymask", [
|
|
72059
71995
|
|
72060
71996
|
var Version;
|
72061
71997
|
var ReleaseDate;
|
72062
|
-
Version = "" + "1.12.
|
72063
|
-
ReleaseDate = "" + "2024-11-
|
71998
|
+
Version = "" + "1.12.12";
|
71999
|
+
ReleaseDate = "" + "2024-11-26";
|
72064
72000
|
function checkLibraryVersion(ver, libraryName) {
|
72065
72001
|
if (Version != ver) {
|
72066
72002
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|
@@ -73498,6 +73434,96 @@ var modernCss = {
|
|
73498
73434
|
};
|
73499
73435
|
surveyCss["modern"] = modernCss;
|
73500
73436
|
|
73437
|
+
// CONCATENATED MODULE: ./packages/survey-core/src/svgbundle.ts
|
73438
|
+
|
73439
|
+
|
73440
|
+
|
73441
|
+
var svgbundle_SvgIconRegistry = /** @class */ (function () {
|
73442
|
+
function SvgIconRegistry() {
|
73443
|
+
this.icons = {};
|
73444
|
+
this.iconPrefix = "icon-";
|
73445
|
+
this.onIconsChanged = new EventBase();
|
73446
|
+
}
|
73447
|
+
SvgIconRegistry.prototype.processId = function (iconId, iconPrefix) {
|
73448
|
+
if (iconId.indexOf(iconPrefix) == 0) {
|
73449
|
+
iconId = iconId.substring(iconPrefix.length);
|
73450
|
+
}
|
73451
|
+
iconId = renamedIcons[iconId] || iconId;
|
73452
|
+
return iconId;
|
73453
|
+
};
|
73454
|
+
SvgIconRegistry.prototype.registerIconFromSymbol = function (iconId, iconSymbolSvg) {
|
73455
|
+
this.icons[iconId] = iconSymbolSvg;
|
73456
|
+
};
|
73457
|
+
SvgIconRegistry.prototype.registerIconFromSvgViaElement = function (iconId, iconSvg, iconPrefix) {
|
73458
|
+
if (iconPrefix === void 0) { iconPrefix = this.iconPrefix; }
|
73459
|
+
if (!DomDocumentHelper.isAvailable())
|
73460
|
+
return;
|
73461
|
+
iconId = this.processId(iconId, iconPrefix);
|
73462
|
+
var divSvg = DomDocumentHelper.createElement("div");
|
73463
|
+
divSvg.innerHTML = iconSvg;
|
73464
|
+
var symbol = DomDocumentHelper.createElement("symbol");
|
73465
|
+
var svg = divSvg.querySelector("svg");
|
73466
|
+
symbol.innerHTML = svg.innerHTML;
|
73467
|
+
for (var i = 0; i < svg.attributes.length; i++) {
|
73468
|
+
symbol.setAttributeNS("http://www.w3.org/2000/svg", svg.attributes[i].name, svg.attributes[i].value);
|
73469
|
+
}
|
73470
|
+
symbol.id = iconPrefix + iconId;
|
73471
|
+
this.registerIconFromSymbol(iconId, symbol.outerHTML);
|
73472
|
+
};
|
73473
|
+
SvgIconRegistry.prototype.registerIconFromSvg = function (iconId, iconSvg, iconPrefix) {
|
73474
|
+
if (iconPrefix === void 0) { iconPrefix = this.iconPrefix; }
|
73475
|
+
iconId = this.processId(iconId, iconPrefix);
|
73476
|
+
var startStr = "<svg ";
|
73477
|
+
var endStr = "</svg>";
|
73478
|
+
iconSvg = iconSvg.trim();
|
73479
|
+
var str = iconSvg.toLowerCase();
|
73480
|
+
if (str.substring(0, startStr.length) === startStr &&
|
73481
|
+
str.substring(str.length - endStr.length, str.length) === endStr) {
|
73482
|
+
this.registerIconFromSymbol(iconId, "<symbol " +
|
73483
|
+
"id=\"" + iconPrefix + iconId + "\" " +
|
73484
|
+
iconSvg.substring(startStr.length, str.length - endStr.length) +
|
73485
|
+
"</symbol>");
|
73486
|
+
return true;
|
73487
|
+
}
|
73488
|
+
else {
|
73489
|
+
return false;
|
73490
|
+
}
|
73491
|
+
};
|
73492
|
+
// TODO: remove in V2
|
73493
|
+
SvgIconRegistry.prototype.registerIconsFromFolder = function (r) {
|
73494
|
+
var _this = this;
|
73495
|
+
r.keys().forEach(function (key) {
|
73496
|
+
_this.registerIconFromSvg(key.substring(2, key.length - 4).toLowerCase(), r(key));
|
73497
|
+
});
|
73498
|
+
};
|
73499
|
+
SvgIconRegistry.prototype.registerIcons = function (icons) {
|
73500
|
+
for (var iconId in icons) {
|
73501
|
+
this.registerIconFromSvg(iconId, icons[iconId]);
|
73502
|
+
}
|
73503
|
+
this.updateMarkup();
|
73504
|
+
};
|
73505
|
+
SvgIconRegistry.prototype.iconsRenderedHtml = function () {
|
73506
|
+
var _this = this;
|
73507
|
+
return Object.keys(this.icons).map(function (icon) { return _this.icons[icon]; }).join("");
|
73508
|
+
};
|
73509
|
+
SvgIconRegistry.prototype.updateMarkup = function () {
|
73510
|
+
this.onIconsChanged.fire(this, {});
|
73511
|
+
};
|
73512
|
+
return SvgIconRegistry;
|
73513
|
+
}());
|
73514
|
+
|
73515
|
+
var SvgRegistry = new svgbundle_SvgIconRegistry();
|
73516
|
+
var SvgThemeSets = {};
|
73517
|
+
function addIconsToThemeSet(name, iconsData) {
|
73518
|
+
if (!SvgThemeSets[name]) {
|
73519
|
+
SvgThemeSets[name] = {};
|
73520
|
+
}
|
73521
|
+
var set = SvgThemeSets[name];
|
73522
|
+
for (var iconId in iconsData) {
|
73523
|
+
set[iconId] = iconsData[iconId];
|
73524
|
+
}
|
73525
|
+
}
|
73526
|
+
|
73501
73527
|
// CONCATENATED MODULE: ./packages/survey-core/entries/chunks/core-wo-model.ts
|
73502
73528
|
// model
|
73503
73529
|
|
@@ -74937,7 +74963,7 @@ var arabicSurveyStrings = {
|
|
74937
74963
|
ok: "موافق",
|
74938
74964
|
cancel: "إلغاء الأمر"
|
74939
74965
|
};
|
74940
|
-
|
74966
|
+
setupLocale({ localeCode: "ar", strings: arabicSurveyStrings, nativeName: "العربية", englishName: "Arabic", rtl: true });
|
74941
74967
|
// The following strings have been translated by a machine translation service
|
74942
74968
|
// Remove those strings that you have corrected manually
|
74943
74969
|
// indexText: "{0} of {1}" => "{0} من {1}"
|
@@ -75083,7 +75109,7 @@ var basqueSurveyStrings = {
|
|
75083
75109
|
ok: "Ados",
|
75084
75110
|
cancel: "Ezeztatu"
|
75085
75111
|
};
|
75086
|
-
|
75112
|
+
setupLocale({ localeCode: "eu", strings: basqueSurveyStrings, nativeName: "euskara", englishName: "Basque" });
|
75087
75113
|
// The following strings have been translated by a machine translation service
|
75088
75114
|
// Remove those strings that you have corrected manually
|
75089
75115
|
// indexText: "{0} of {1}" => "{1} {0}"
|
@@ -75222,7 +75248,7 @@ var bulgarianStrings = {
|
|
75222
75248
|
ok: "Добре",
|
75223
75249
|
cancel: "Отмени"
|
75224
75250
|
};
|
75225
|
-
|
75251
|
+
setupLocale({ localeCode: "bg", strings: bulgarianStrings, nativeName: "български", englishName: "Bulgarian" });
|
75226
75252
|
// The following strings have been translated by a machine translation service
|
75227
75253
|
// Remove those strings that you have corrected manually
|
75228
75254
|
// indexText: "{0} of {1}" => "{0} на {1}"
|
@@ -75368,7 +75394,7 @@ var catalanSurveyStrings = {
|
|
75368
75394
|
ok: "D'ACORD",
|
75369
75395
|
cancel: "Cancel·lar"
|
75370
75396
|
};
|
75371
|
-
|
75397
|
+
setupLocale({ localeCode: "ca", strings: catalanSurveyStrings, nativeName: "català", englishName: "Catalan" });
|
75372
75398
|
// The following strings have been translated by a machine translation service
|
75373
75399
|
// Remove those strings that you have corrected manually
|
75374
75400
|
// previewText: "Preview" => "Preestrena"
|
@@ -75554,7 +75580,7 @@ var croatianStrings = {
|
|
75554
75580
|
ok: "OK",
|
75555
75581
|
cancel: "Otkazati"
|
75556
75582
|
};
|
75557
|
-
|
75583
|
+
setupLocale({ localeCode: "hr", strings: croatianStrings, nativeName: "hrvatski", englishName: "Croatian" });
|
75558
75584
|
// The following strings have been translated by a machine translation service
|
75559
75585
|
// Remove those strings that you have corrected manually
|
75560
75586
|
// indexText: "{0} of {1}" => "{0} {1}"
|
@@ -75698,7 +75724,7 @@ var czechSurveyStrings = {
|
|
75698
75724
|
ok: "OK",
|
75699
75725
|
cancel: "Zrušit"
|
75700
75726
|
};
|
75701
|
-
|
75727
|
+
setupLocale({ localeCode: "cs", strings: czechSurveyStrings, nativeName: "čeština", englishName: "Czech" });
|
75702
75728
|
// The following strings have been translated by a machine translation service
|
75703
75729
|
// Remove those strings that you have corrected manually
|
75704
75730
|
// indexText: "{0} of {1}" => "{0} z {1}"
|
@@ -75844,7 +75870,7 @@ var danishSurveyStrings = {
|
|
75844
75870
|
ok: "OK",
|
75845
75871
|
cancel: "Aflyse"
|
75846
75872
|
};
|
75847
|
-
|
75873
|
+
setupLocale({ localeCode: "da", strings: danishSurveyStrings, nativeName: "dansk", englishName: "Danish" });
|
75848
75874
|
// The following strings have been translated by a machine translation service
|
75849
75875
|
// Remove those strings that you have corrected manually
|
75850
75876
|
// indexText: "{0} of {1}" => "{0} af {1}"
|
@@ -75990,7 +76016,7 @@ var dutchSurveyStrings = {
|
|
75990
76016
|
ok: "OK",
|
75991
76017
|
cancel: "Annuleren"
|
75992
76018
|
};
|
75993
|
-
|
76019
|
+
setupLocale({ localeCode: "nl", strings: dutchSurveyStrings, nativeName: "nederlands", englishName: "Dutch" });
|
75994
76020
|
// The following strings have been translated by a machine translation service
|
75995
76021
|
// Remove those strings that you have corrected manually
|
75996
76022
|
// indexText: "{0} of {1}" => "{0} van {1}"
|
@@ -76031,7 +76057,7 @@ surveyLocalization.setupLocale("nl", dutchSurveyStrings, "nederlands", "Dutch");
|
|
76031
76057
|
* - Copy the Dutch set once and move forward as if it are 2 totally different languages
|
76032
76058
|
* - Override the relevant strings only
|
76033
76059
|
*/
|
76034
|
-
|
76060
|
+
setupLocale({ localeCode: "nl-BE", strings: dutchSurveyStrings, nativeName: "vlaams", englishName: "Flemish" });
|
76035
76061
|
|
76036
76062
|
// CONCATENATED MODULE: ./packages/survey-core/src/localization/estonian.ts
|
76037
76063
|
|
@@ -76144,7 +76170,7 @@ var estonianSurveyStrings = {
|
|
76144
76170
|
ok: "OK",
|
76145
76171
|
cancel: "Tühistama"
|
76146
76172
|
};
|
76147
|
-
|
76173
|
+
setupLocale({ localeCode: "et", strings: estonianSurveyStrings, nativeName: "eesti keel", englishName: "Estonian" });
|
76148
76174
|
// The following strings have been translated by a machine translation service
|
76149
76175
|
// Remove those strings that you have corrected manually
|
76150
76176
|
// indexText: "{0} of {1}" => "{0} {1}"
|
@@ -76290,7 +76316,7 @@ var finnishSurveyStrings = {
|
|
76290
76316
|
ok: "OKEI",
|
76291
76317
|
cancel: "Perua"
|
76292
76318
|
};
|
76293
|
-
|
76319
|
+
setupLocale({ localeCode: "fi", strings: finnishSurveyStrings, nativeName: "suomi", englishName: "Finnish" });
|
76294
76320
|
// The following strings have been translated by a machine translation service
|
76295
76321
|
// Remove those strings that you have corrected manually
|
76296
76322
|
// panelDynamicTabTextFormat: "Panel {panelIndex}" => "Paneeli {panelIndex}"
|
@@ -76424,7 +76450,7 @@ var frenchSurveyStrings = {
|
|
76424
76450
|
ok: "D’ACCORD",
|
76425
76451
|
cancel: "Annuler"
|
76426
76452
|
};
|
76427
|
-
|
76453
|
+
setupLocale({ localeCode: "fr", strings: frenchSurveyStrings, nativeName: "français", englishName: "French" });
|
76428
76454
|
// The following strings have been translated by a machine translation service
|
76429
76455
|
// Remove those strings that you have corrected manually
|
76430
76456
|
// panelDynamicTabTextFormat: "Panel {panelIndex}" => "Panel {panelIndex}"
|
@@ -76558,7 +76584,7 @@ var georgianSurveyStrings = {
|
|
76558
76584
|
ok: "კარგი",
|
76559
76585
|
cancel: "გაუქმება"
|
76560
76586
|
};
|
76561
|
-
|
76587
|
+
setupLocale({ localeCode: "ka", strings: georgianSurveyStrings, nativeName: "ქართული", englishName: "Georgian" });
|
76562
76588
|
// The following strings have been translated by a machine translation service
|
76563
76589
|
// Remove those strings that you have corrected manually
|
76564
76590
|
// previewText: "Preview" => "გადახედვა"
|
@@ -76757,7 +76783,7 @@ var germanSurveyStrings = {
|
|
76757
76783
|
ok: "OK",
|
76758
76784
|
cancel: "Abbrechen"
|
76759
76785
|
};
|
76760
|
-
|
76786
|
+
setupLocale({ localeCode: "de", strings: germanSurveyStrings, nativeName: "deutsch", englishName: "German" });
|
76761
76787
|
// The following strings have been translated by a machine translation service
|
76762
76788
|
// Remove those strings that you have corrected manually
|
76763
76789
|
// tabTitlePlaceholder: "New Panel" => "Neues Panel"// deselectAllItemText: "Deselect all" => "Alle abwählen"
|
@@ -76874,7 +76900,7 @@ var greekSurveyStrings = {
|
|
76874
76900
|
ok: "OK",
|
76875
76901
|
cancel: "Ακυρώνω"
|
76876
76902
|
};
|
76877
|
-
|
76903
|
+
setupLocale({ localeCode: "gr", strings: greekSurveyStrings, nativeName: "ελληνικά", englishName: "Greek" });
|
76878
76904
|
// The following strings have been translated by a machine translation service
|
76879
76905
|
// Remove those strings that you have corrected manually
|
76880
76906
|
// panelDynamicTabTextFormat: "Panel {panelIndex}" => "Πίνακας {panelIndex}"
|
@@ -77005,7 +77031,7 @@ var hebrewSurveyStrings = {
|
|
77005
77031
|
ok: "אוקיי",
|
77006
77032
|
cancel: "ביטל"
|
77007
77033
|
};
|
77008
|
-
|
77034
|
+
setupLocale({ localeCode: "he", strings: hebrewSurveyStrings, nativeName: "עברית", englishName: "Hebrew", rtl: true });
|
77009
77035
|
// The following strings have been translated by a machine translation service
|
77010
77036
|
// Remove those strings that you have corrected manually
|
77011
77037
|
// indexText: "{0} of {1}" => "{0} מתוך {1}"
|
@@ -77152,7 +77178,7 @@ var hindiStrings = {
|
|
77152
77178
|
ok: "ठीक है",
|
77153
77179
|
cancel: "रद्द करना"
|
77154
77180
|
};
|
77155
|
-
|
77181
|
+
setupLocale({ localeCode: "hi", strings: hindiStrings, nativeName: "hindi", englishName: "Hindi" });
|
77156
77182
|
// The following strings have been translated by a machine translation service
|
77157
77183
|
// Remove those strings that you have corrected manually
|
77158
77184
|
// noneItemText: "None" => "कोई नहीं"
|
@@ -77298,7 +77324,7 @@ var hungarianSurveyStrings = {
|
|
77298
77324
|
ok: "OKÉ",
|
77299
77325
|
cancel: "Érvénytelenít"
|
77300
77326
|
};
|
77301
|
-
|
77327
|
+
setupLocale({ localeCode: "hu", strings: hungarianSurveyStrings, nativeName: "magyar", englishName: "Hungarian" });
|
77302
77328
|
// The following strings have been translated by a machine translation service
|
77303
77329
|
// Remove those strings that you have corrected manually
|
77304
77330
|
// indexText: "{0} of {1}" => "{0} {1} közül"
|
@@ -77443,7 +77469,7 @@ var icelandicSurveyStrings = {
|
|
77443
77469
|
ok: "ÓKEI",
|
77444
77470
|
cancel: "Afturkalla"
|
77445
77471
|
};
|
77446
|
-
|
77472
|
+
setupLocale({ localeCode: "is", strings: icelandicSurveyStrings, nativeName: "íslenska", englishName: "Icelandic" });
|
77447
77473
|
// The following strings have been translated by a machine translation service
|
77448
77474
|
// Remove those strings that you have corrected manually
|
77449
77475
|
// indexText: "{0} of {1}" => "{0} af {1}"
|
@@ -77589,7 +77615,7 @@ var indonesianStrings = {
|
|
77589
77615
|
ok: "OKE",
|
77590
77616
|
cancel: "Membatalkan"
|
77591
77617
|
};
|
77592
|
-
|
77618
|
+
setupLocale({ localeCode: "id", strings: indonesianStrings, nativeName: "bahasa indonesia", englishName: "Indonesian" });
|
77593
77619
|
// The following strings have been translated by a machine translation service
|
77594
77620
|
// Remove those strings that you have corrected manually
|
77595
77621
|
// indexText: "{0} of {1}" => "{0} dari {1}"
|
@@ -77735,7 +77761,7 @@ var italianSurveyStrings = {
|
|
77735
77761
|
ok: "OK",
|
77736
77762
|
cancel: "Annulla"
|
77737
77763
|
};
|
77738
|
-
|
77764
|
+
setupLocale({ localeCode: "it", strings: italianSurveyStrings, nativeName: "italiano", englishName: "Italian" });
|
77739
77765
|
// The following strings have been translated by a machine translation service
|
77740
77766
|
// Remove those strings that you have corrected manually
|
77741
77767
|
// panelDynamicTabTextFormat: "Panel {panelIndex}" => "Pannello {panelIndex}"
|
@@ -77869,7 +77895,7 @@ var japaneseSurveyStrings = {
|
|
77869
77895
|
ok: "わかりました",
|
77870
77896
|
cancel: "キャンセル"
|
77871
77897
|
};
|
77872
|
-
|
77898
|
+
setupLocale({ localeCode: "ja", strings: japaneseSurveyStrings, nativeName: "日本語", englishName: "Japanese" });
|
77873
77899
|
// The following strings have been translated by a machine translation service
|
77874
77900
|
// Remove those strings that you have corrected manually
|
77875
77901
|
// indexText: "{0} of {1}" => "{1}の{0}"
|
@@ -78016,7 +78042,7 @@ var kazakhStrings = {
|
|
78016
78042
|
ok: "ЖАҚСЫ",
|
78017
78043
|
cancel: "Болдырмау"
|
78018
78044
|
};
|
78019
|
-
|
78045
|
+
setupLocale({ localeCode: "kk", strings: kazakhStrings, nativeName: "kazakh", englishName: "Kazakh" });
|
78020
78046
|
// The following strings have been translated by a machine translation service
|
78021
78047
|
// Remove those strings that you have corrected manually
|
78022
78048
|
// indexText: "{0} of {1}" => "{1} {0}"
|
@@ -78162,7 +78188,7 @@ var koreanStrings = {
|
|
78162
78188
|
ok: "그래",
|
78163
78189
|
cancel: "취소"
|
78164
78190
|
};
|
78165
|
-
|
78191
|
+
setupLocale({ localeCode: "ko", strings: koreanStrings, nativeName: "한국어", englishName: "Korean" });
|
78166
78192
|
// The following strings have been translated by a machine translation service
|
78167
78193
|
// Remove those strings that you have corrected manually
|
78168
78194
|
// panelDynamicTabTextFormat: "Panel {panelIndex}" => "패널 {panelIndex}"
|
@@ -78295,7 +78321,7 @@ var latvianSurveyStrings = {
|
|
78295
78321
|
ok: "LABI",
|
78296
78322
|
cancel: "Atcelt"
|
78297
78323
|
};
|
78298
|
-
|
78324
|
+
setupLocale({ localeCode: "lv", strings: latvianSurveyStrings, nativeName: "latviešu", englishName: "Latvian" });
|
78299
78325
|
// The following strings have been translated by a machine translation service
|
78300
78326
|
// Remove those strings that you have corrected manually
|
78301
78327
|
// panelDynamicTabTextFormat: "Panel {panelIndex}" => "Panelis {panelIndex}"
|
@@ -78429,7 +78455,7 @@ var lithuaniaSurveyStrings = {
|
|
78429
78455
|
ok: "GERAI",
|
78430
78456
|
cancel: "Atšaukti"
|
78431
78457
|
};
|
78432
|
-
|
78458
|
+
setupLocale({ localeCode: "lt", strings: lithuaniaSurveyStrings, nativeName: "lietuvių", englishName: "Lithuanian" });
|
78433
78459
|
// The following strings have been translated by a machine translation service
|
78434
78460
|
// Remove those strings that you have corrected manually
|
78435
78461
|
// indexText: "{0} of {1}" => "{1} {0}"
|
@@ -78575,7 +78601,7 @@ var macedonianSurveyStrings = {
|
|
78575
78601
|
ok: "ДОБРО",
|
78576
78602
|
cancel: "Откажи"
|
78577
78603
|
};
|
78578
|
-
|
78604
|
+
setupLocale({ localeCode: "mk", strings: macedonianSurveyStrings, nativeName: "македонски", englishName: "Macedonian" });
|
78579
78605
|
// The following strings have been translated by a machine translation service
|
78580
78606
|
// Remove those strings that you have corrected manually
|
78581
78607
|
// indexText: "{0} of {1}" => "{0} на {1}"
|
@@ -78715,7 +78741,7 @@ var malaySurveyStrings = {
|
|
78715
78741
|
ok: "OK",
|
78716
78742
|
cancel: "Batal"
|
78717
78743
|
};
|
78718
|
-
|
78744
|
+
setupLocale({ localeCode: "ms", strings: malaySurveyStrings, nativeName: "melayu", englishName: "Malay" });
|
78719
78745
|
// The following strings have been translated by a machine translation service
|
78720
78746
|
// Remove those strings that you have corrected manually
|
78721
78747
|
// indexText: "{0} of {1}" => "{0} {1}"
|
@@ -78851,7 +78877,7 @@ var norwegianSurveyStrings = {
|
|
78851
78877
|
ok: "OK",
|
78852
78878
|
cancel: "Annullere"
|
78853
78879
|
};
|
78854
|
-
|
78880
|
+
setupLocale({ localeCode: "no", strings: norwegianSurveyStrings, nativeName: "norsk", englishName: "Norwegian" });
|
78855
78881
|
// The following strings have been translated by a machine translation service
|
78856
78882
|
// Remove those strings that you have corrected manually
|
78857
78883
|
// indexText: "{0} of {1}" => "{0} av {1}"
|
@@ -78997,7 +79023,7 @@ var persianSurveyStrings = {
|
|
78997
79023
|
ok: "باشه",
|
78998
79024
|
cancel: "لغو"
|
78999
79025
|
};
|
79000
|
-
|
79026
|
+
setupLocale({ localeCode: "fa", strings: persianSurveyStrings, nativeName: "فارْسِى", englishName: "Persian", rtl: true });
|
79001
79027
|
// The following strings have been translated by a machine translation service
|
79002
79028
|
// Remove those strings that you have corrected manually
|
79003
79029
|
// indexText: "{0} of {1}" => "{0} {1}"
|
@@ -79143,7 +79169,7 @@ var polishSurveyStrings = {
|
|
79143
79169
|
ok: "OK",
|
79144
79170
|
cancel: "Anuluj"
|
79145
79171
|
};
|
79146
|
-
|
79172
|
+
setupLocale({ localeCode: "pl", strings: polishSurveyStrings, nativeName: "polski", englishName: "Polish" });
|
79147
79173
|
// The following strings have been translated by a machine translation service
|
79148
79174
|
// Remove those strings that you have corrected manually
|
79149
79175
|
// panelDynamicTabTextFormat: "Panel {panelIndex}" => "Panel {panelIndex}"
|
@@ -79277,7 +79303,7 @@ var portugueseSurveyStrings = {
|
|
79277
79303
|
ok: "OKEY",
|
79278
79304
|
cancel: "Cancelar"
|
79279
79305
|
};
|
79280
|
-
|
79306
|
+
setupLocale({ localeCode: "pt", strings: portugueseSurveyStrings, nativeName: "português", englishName: "Portuguese" });
|
79281
79307
|
// The following strings have been translated by a machine translation service
|
79282
79308
|
// Remove those strings that you have corrected manually
|
79283
79309
|
// panelDynamicTabTextFormat: "Panel {panelIndex}" => "Painel {panelIndex}"
|
@@ -79411,7 +79437,7 @@ var portugueseBrSurveyStrings = {
|
|
79411
79437
|
ok: "OKEY",
|
79412
79438
|
cancel: "Cancelar"
|
79413
79439
|
};
|
79414
|
-
|
79440
|
+
setupLocale({ localeCode: "pt-br", strings: portugueseBrSurveyStrings, nativeName: "português brasileiro", englishName: "Brazilian Portuguese" });
|
79415
79441
|
// The following strings have been translated by a machine translation service
|
79416
79442
|
// Remove those strings that you have corrected manually
|
79417
79443
|
// pagePrevText: "Previous" => "Anterior"
|
@@ -79604,7 +79630,7 @@ var romanianSurveyStrings = {
|
|
79604
79630
|
ok: "OK",
|
79605
79631
|
cancel: "Anula"
|
79606
79632
|
};
|
79607
|
-
|
79633
|
+
setupLocale({ localeCode: "ro", strings: romanianSurveyStrings, nativeName: "română", englishName: "Romanian" });
|
79608
79634
|
// The following strings have been translated by a machine translation service
|
79609
79635
|
// Remove those strings that you have corrected manually
|
79610
79636
|
// indexText: "{0} of {1}" => "{0} de {1}"
|
@@ -79750,7 +79776,7 @@ var russianSurveyStrings = {
|
|
79750
79776
|
ok: "Хорошо",
|
79751
79777
|
cancel: "Отмена"
|
79752
79778
|
};
|
79753
|
-
|
79779
|
+
setupLocale({ localeCode: "ru", strings: russianSurveyStrings, nativeName: "русский", englishName: "Russian" });
|
79754
79780
|
// The following strings have been translated by a machine translation service
|
79755
79781
|
// Remove those strings that you have corrected manually
|
79756
79782
|
// panelDynamicTabTextFormat: "Panel {panelIndex}" => "Панель {panelIndex}"
|
@@ -79880,8 +79906,7 @@ var serbianStrings = {
|
|
79880
79906
|
ok: "U redu",
|
79881
79907
|
cancel: "Otkaži"
|
79882
79908
|
};
|
79883
|
-
|
79884
|
-
surveyLocalization.setupLocale("rs", serbianStrings, "srpski", "Serbian");
|
79909
|
+
setupLocale({ localeCode: "rs", strings: serbianStrings, nativeName: "srpski", englishName: "Serbian" });
|
79885
79910
|
// The following strings have been translated by a machine translation service
|
79886
79911
|
// Remove those strings that you have corrected manually
|
79887
79912
|
// indexText: "{0} of {1}" => "{0} {1}"
|
@@ -80021,7 +80046,7 @@ var simplifiedChineseSurveyStrings = {
|
|
80021
80046
|
ok: "还行",
|
80022
80047
|
cancel: "取消"
|
80023
80048
|
};
|
80024
|
-
|
80049
|
+
setupLocale({ localeCode: "zh-cn", strings: simplifiedChineseSurveyStrings, nativeName: "简体中文", englishName: "Simplified Chinese" });
|
80025
80050
|
// The following strings have been translated by a machine translation service
|
80026
80051
|
// Remove those strings that you have corrected manually
|
80027
80052
|
// indexText: "{0} of {1}" => "{1}{0}"
|
@@ -80161,7 +80186,7 @@ var slovakSurveyStrings = {
|
|
80161
80186
|
ok: "OK",
|
80162
80187
|
cancel: "Zrušiť"
|
80163
80188
|
};
|
80164
|
-
|
80189
|
+
setupLocale({ localeCode: "sk", strings: slovakSurveyStrings, nativeName: "slovak", englishName: "Slovak" });
|
80165
80190
|
// The following strings have been translated by a machine translation service
|
80166
80191
|
// Remove those strings that you have corrected manually
|
80167
80192
|
// indexText: "{0} of {1}" => "{0} {1}"
|
@@ -80297,7 +80322,7 @@ var spanishSurveyStrings = {
|
|
80297
80322
|
ok: "De acuerdo",
|
80298
80323
|
cancel: "Cancelar"
|
80299
80324
|
};
|
80300
|
-
|
80325
|
+
setupLocale({ localeCode: "es", strings: spanishSurveyStrings, nativeName: "español", englishName: "Spanish" });
|
80301
80326
|
// The following strings have been translated by a machine translation service
|
80302
80327
|
// Remove those strings that you have corrected manually
|
80303
80328
|
// panelDynamicTabTextFormat: "Panel {panelIndex}" => "Panel {panelIndex}"
|
@@ -80431,7 +80456,7 @@ var swahiliStrings = {
|
|
80431
80456
|
ok: "Sawa kabisa",
|
80432
80457
|
cancel: "Katisha"
|
80433
80458
|
};
|
80434
|
-
|
80459
|
+
setupLocale({ localeCode: "sw", strings: swahiliStrings, nativeName: "swahili", englishName: "Swahili" });
|
80435
80460
|
// The following strings have been translated by a machine translation service
|
80436
80461
|
// Remove those strings that you have corrected manually
|
80437
80462
|
// indexText: "{0} of {1}" => "{0} ya {1}"
|
@@ -80577,7 +80602,7 @@ var swedishSurveyStrings = {
|
|
80577
80602
|
ok: "OKEJ",
|
80578
80603
|
cancel: "Annullera"
|
80579
80604
|
};
|
80580
|
-
|
80605
|
+
setupLocale({ localeCode: "sv", strings: swedishSurveyStrings, nativeName: "svenska", englishName: "Swedish" });
|
80581
80606
|
// The following strings have been translated by a machine translation service
|
80582
80607
|
// Remove those strings that you have corrected manually
|
80583
80608
|
// panelDynamicTabTextFormat: "Panel {panelIndex}" => "Panel {panelIndex}"
|
@@ -80691,7 +80716,7 @@ var tajikSurveyStrings = {
|
|
80691
80716
|
// noEntriesText: "There are no entries yet.\nClick the button below to add a new entry.",
|
80692
80717
|
// more: "More"
|
80693
80718
|
};
|
80694
|
-
|
80719
|
+
setupLocale({ localeCode: "tg", strings: tajikSurveyStrings, nativeName: "тоҷикӣ", englishName: "Tajik" });
|
80695
80720
|
|
80696
80721
|
// CONCATENATED MODULE: ./packages/survey-core/src/localization/thai.ts
|
80697
80722
|
|
@@ -80804,7 +80829,7 @@ var thaiStrings = {
|
|
80804
80829
|
ok: "ตกลง, ได้",
|
80805
80830
|
cancel: "ยกเลิก"
|
80806
80831
|
};
|
80807
|
-
|
80832
|
+
setupLocale({ localeCode: "th", strings: thaiStrings, nativeName: "ไทย", englishName: "Thai" });
|
80808
80833
|
// The following strings have been translated by a machine translation service
|
80809
80834
|
// Remove those strings that you have corrected manually
|
80810
80835
|
// indexText: "{0} of {1}" => "{0} of {1}"
|
@@ -80949,7 +80974,7 @@ var traditionalChineseSurveyStrings = {
|
|
80949
80974
|
ok: "還行",
|
80950
80975
|
cancel: "取消"
|
80951
80976
|
};
|
80952
|
-
|
80977
|
+
setupLocale({ localeCode: "zh-tw", strings: traditionalChineseSurveyStrings, nativeName: "繁體中文", englishName: "Tranditional Chinese" });
|
80953
80978
|
// The following strings have been translated by a machine translation service
|
80954
80979
|
// Remove those strings that you have corrected manually
|
80955
80980
|
// previewText: "Preview" => "預覽"
|
@@ -81129,7 +81154,7 @@ var turkishSurveyStrings = {
|
|
81129
81154
|
ok: "TAMAM",
|
81130
81155
|
cancel: "İptal"
|
81131
81156
|
};
|
81132
|
-
|
81157
|
+
setupLocale({ localeCode: "tr", strings: turkishSurveyStrings, nativeName: "türkçe", englishName: "Turkish" });
|
81133
81158
|
// The following strings have been translated by a machine translation service
|
81134
81159
|
// Remove those strings that you have corrected manually
|
81135
81160
|
// takePhotoCaption: "Take Photo" => "Fotoğraf Çekin"
|
@@ -81256,7 +81281,7 @@ var ukrainianSurveyStrings = {
|
|
81256
81281
|
ok: "ГАРАЗД",
|
81257
81282
|
cancel: "Скасувати"
|
81258
81283
|
};
|
81259
|
-
|
81284
|
+
setupLocale({ localeCode: "ua", strings: ukrainianSurveyStrings, nativeName: "українська", englishName: "Ukrainian" });
|
81260
81285
|
// The following strings have been translated by a machine translation service
|
81261
81286
|
// Remove those strings that you have corrected manually
|
81262
81287
|
// indexText: "{0} of {1}" => "{0} {1}"
|
@@ -81401,8 +81426,7 @@ var vietnameseSurveyStrings = {
|
|
81401
81426
|
ok: "OK",
|
81402
81427
|
cancel: "Hủy"
|
81403
81428
|
};
|
81404
|
-
|
81405
|
-
surveyLocalization.setupLocale("vi", vietnameseSurveyStrings, "việt nam", "Vietnamese");
|
81429
|
+
setupLocale({ localeCode: "vi", strings: vietnameseSurveyStrings, nativeName: "việt nam", englishName: "Vietnamese" });
|
81406
81430
|
// The following strings have been translated by a machine translation service
|
81407
81431
|
// Remove those strings that you have corrected manually
|
81408
81432
|
// indexText: "{0} of {1}" => "{0} của {1}"
|
@@ -81547,7 +81571,7 @@ var welshSurveyStrings = {
|
|
81547
81571
|
ok: "OCÊ",
|
81548
81572
|
cancel: "Canslo"
|
81549
81573
|
};
|
81550
|
-
|
81574
|
+
setupLocale({ localeCode: "cy", strings: welshSurveyStrings, nativeName: "cymraeg", englishName: "Welsh" });
|
81551
81575
|
// The following strings have been translated by a machine translation service
|
81552
81576
|
// Remove those strings that you have corrected manually
|
81553
81577
|
// indexText: "{0} of {1}" => "{0} o {1}"
|
@@ -81692,7 +81716,7 @@ var teluguStrings = {
|
|
81692
81716
|
ok: "సరే",
|
81693
81717
|
cancel: "రద్దు"
|
81694
81718
|
};
|
81695
|
-
|
81719
|
+
setupLocale({ localeCode: "tel", strings: teluguStrings, nativeName: "telugu", englishName: "Telugu" });
|
81696
81720
|
// The following strings have been translated by a machine translation service
|
81697
81721
|
// Remove those strings that you have corrected manually
|
81698
81722
|
// noneItemText: "None" => "ఎవరు కాదు"
|
@@ -81841,7 +81865,7 @@ var philippinesStrings = {
|
|
81841
81865
|
// Uncomment the lines below if you create a custom dictionary.
|
81842
81866
|
// Replace "en" with a custom locale code (for example, "fr" or "de"),
|
81843
81867
|
// Replace `englishStrings` with the name of the variable that contains the custom dictionary.
|
81844
|
-
|
81868
|
+
setupLocale({ localeCode: "fil", strings: philippinesStrings, nativeName: "filipino", englishName: "Filipino" });
|
81845
81869
|
// The following strings have been translated by a machine translation service
|
81846
81870
|
// Remove those strings that you have corrected manually
|
81847
81871
|
// tabTitlePlaceholder: "New Panel" => "Bagong Panel"// deselectAllItemText: "Deselect all" => "Alisin ang pagpili ng lahat"
|
@@ -84481,13 +84505,20 @@ var svgbundle_SvgBundleComponent = /** @class */ (function (_super) {
|
|
84481
84505
|
svgbundle_extends(SvgBundleComponent, _super);
|
84482
84506
|
function SvgBundleComponent(props) {
|
84483
84507
|
var _this = _super.call(this, props) || this;
|
84508
|
+
_this.onIconsChanged = function () {
|
84509
|
+
if (!!_this.containerRef.current) {
|
84510
|
+
_this.containerRef.current.innerHTML = SvgRegistry.iconsRenderedHtml();
|
84511
|
+
}
|
84512
|
+
};
|
84484
84513
|
_this.containerRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createRef();
|
84485
84514
|
return _this;
|
84486
84515
|
}
|
84487
84516
|
SvgBundleComponent.prototype.componentDidMount = function () {
|
84488
|
-
|
84489
|
-
|
84490
|
-
|
84517
|
+
this.onIconsChanged();
|
84518
|
+
SvgRegistry.onIconsChanged.add(this.onIconsChanged);
|
84519
|
+
};
|
84520
|
+
SvgBundleComponent.prototype.componentWillUnmount = function () {
|
84521
|
+
SvgRegistry.onIconsChanged.remove(this.onIconsChanged);
|
84491
84522
|
};
|
84492
84523
|
SvgBundleComponent.prototype.render = function () {
|
84493
84524
|
var svgStyle = {
|
@@ -84603,6 +84634,22 @@ var popup_modal_PopupModal = /** @class */ (function (_super) {
|
|
84603
84634
|
}(reactquestion_element_SurveyElementBase));
|
84604
84635
|
|
84605
84636
|
|
84637
|
+
// CONCATENATED MODULE: ./packages/survey-core/src/iconsV1.ts
|
84638
|
+
var iconsV1_path = __webpack_require__("./packages/survey-core/src/images-v1 sync recursive \\.svg$");
|
84639
|
+
var icons = {};
|
84640
|
+
iconsV1_path.keys().forEach(function (key) {
|
84641
|
+
icons[key.substring(2, key.length - 4).toLowerCase()] = iconsV1_path(key);
|
84642
|
+
});
|
84643
|
+
|
84644
|
+
|
84645
|
+
// CONCATENATED MODULE: ./packages/survey-core/src/iconsV2.ts
|
84646
|
+
var iconsV2_path = __webpack_require__("./packages/survey-core/src/images-v2 sync recursive \\.svg$");
|
84647
|
+
var iconsV2_icons = {};
|
84648
|
+
iconsV2_path.keys().forEach(function (key) {
|
84649
|
+
iconsV2_icons[key.substring(2, key.length - 4).toLowerCase()] = iconsV2_path(key);
|
84650
|
+
});
|
84651
|
+
|
84652
|
+
|
84606
84653
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactSurvey.tsx
|
84607
84654
|
var reactSurvey_extends = (undefined && undefined.__extends) || (function () {
|
84608
84655
|
var extendStatics = function (d, b) {
|
@@ -84642,6 +84689,11 @@ var reactSurvey_assign = (undefined && undefined.__assign) || function () {
|
|
84642
84689
|
|
84643
84690
|
|
84644
84691
|
|
84692
|
+
|
84693
|
+
|
84694
|
+
addIconsToThemeSet("v1", icons);
|
84695
|
+
addIconsToThemeSet("v2", iconsV2_icons);
|
84696
|
+
SvgRegistry.registerIcons(icons);
|
84645
84697
|
var reactSurvey_Survey = /** @class */ (function (_super) {
|
84646
84698
|
reactSurvey_extends(Survey, _super);
|
84647
84699
|
function Survey(props) {
|