survey-creator-core 2.3.11 → 2.3.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/fesm/i18n/arabic.mjs +1 -1
- package/fesm/i18n/bulgarian.mjs +1 -1
- package/fesm/i18n/burmese.mjs +1 -1
- package/fesm/i18n/croatian.mjs +1 -1
- package/fesm/i18n/czech.mjs +1 -1
- package/fesm/i18n/danish.mjs +1 -1
- package/fesm/i18n/dutch.mjs +1 -1
- package/fesm/i18n/english.mjs +1 -1
- package/fesm/i18n/finnish.mjs +1 -1
- package/fesm/i18n/french.mjs +1 -1
- package/fesm/i18n/german.mjs +1 -1
- package/fesm/i18n/greek.mjs +1 -1
- package/fesm/i18n/haitian-creole.mjs +1 -1
- package/fesm/i18n/hebrew.mjs +1 -1
- package/fesm/i18n/hungarian.mjs +1 -1
- package/fesm/i18n/index.mjs +1 -1
- package/fesm/i18n/indonesian.mjs +1 -1
- package/fesm/i18n/italian.mjs +1 -1
- package/fesm/i18n/japanese.mjs +1 -1
- package/fesm/i18n/korean.mjs +1 -1
- package/fesm/i18n/malay.mjs +1 -1
- package/fesm/i18n/mongolian.mjs +1 -1
- package/fesm/i18n/norwegian.mjs +1 -1
- package/fesm/i18n/persian.mjs +1 -1
- package/fesm/i18n/polish.mjs +1 -1
- package/fesm/i18n/portuguese.mjs +1 -1
- package/fesm/i18n/romanian.mjs +1 -1
- package/fesm/i18n/russian.mjs +1 -1
- package/fesm/i18n/simplified-chinese.mjs +1 -1
- package/fesm/i18n/slovak.mjs +1 -1
- package/fesm/i18n/slovenian.mjs +1 -1
- package/fesm/i18n/spanish.mjs +1 -1
- package/fesm/i18n/swedish.mjs +1 -1
- package/fesm/i18n/tajik.mjs +1 -1
- package/fesm/i18n/thai.mjs +1 -1
- package/fesm/i18n/traditional-chinese.mjs +1 -1
- package/fesm/i18n/turkish.mjs +1 -1
- package/fesm/survey-creator-core.i18n.mjs +1 -1
- package/fesm/survey-creator-core.mjs +34 -11
- package/fesm/survey-creator-core.mjs.map +1 -1
- package/fesm/themes/index.mjs +1 -1
- package/fonts.fontless.css +1 -1
- package/fonts.fontless.min.css +1 -1
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js.LICENSE.txt +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js.LICENSE.txt +1 -1
- package/i18n/burmese.js +1 -1
- package/i18n/burmese.min.js.LICENSE.txt +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js.LICENSE.txt +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js.LICENSE.txt +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js.LICENSE.txt +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js.LICENSE.txt +1 -1
- package/i18n/english.js +1 -1
- package/i18n/english.min.js.LICENSE.txt +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js.LICENSE.txt +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js.LICENSE.txt +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js.LICENSE.txt +1 -1
- package/i18n/greek.js +1 -1
- package/i18n/greek.min.js.LICENSE.txt +1 -1
- package/i18n/haitian-creole.js +1 -1
- package/i18n/haitian-creole.min.js.LICENSE.txt +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js.LICENSE.txt +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js.LICENSE.txt +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js.LICENSE.txt +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js.LICENSE.txt +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js.LICENSE.txt +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js.LICENSE.txt +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js.LICENSE.txt +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js.LICENSE.txt +1 -1
- package/i18n/mongolian.js +1 -1
- package/i18n/mongolian.min.js.LICENSE.txt +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js.LICENSE.txt +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js.LICENSE.txt +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js.LICENSE.txt +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js.LICENSE.txt +1 -1
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js.LICENSE.txt +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js.LICENSE.txt +1 -1
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js.LICENSE.txt +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js.LICENSE.txt +1 -1
- package/i18n/slovenian.js +1 -1
- package/i18n/slovenian.min.js.LICENSE.txt +1 -1
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js.LICENSE.txt +1 -1
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js.LICENSE.txt +1 -1
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js.LICENSE.txt +1 -1
- package/i18n/thai.js +1 -1
- package/i18n/thai.min.js.LICENSE.txt +1 -1
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js.LICENSE.txt +1 -1
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js.LICENSE.txt +1 -1
- package/package.json +2 -2
- package/survey-creator-core.css +2 -2
- package/survey-creator-core.fontless.css +1 -1
- package/survey-creator-core.fontless.min.css +1 -1
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
- package/survey-creator-core.js +32 -9
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +2 -2
- package/survey-creator-core.min.js +1 -1
- package/survey-creator-core.min.js.LICENSE.txt +1 -1
- package/themes/default-contrast.js +1 -1
- package/themes/default-contrast.min.js.LICENSE.txt +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js.LICENSE.txt +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js.LICENSE.txt +1 -1
- package/themes/sc2020.js +1 -1
- package/themes/sc2020.min.js.LICENSE.txt +1 -1
- package/typings/creator-base.d.ts +13 -0
- package/typings/creator-options.d.ts +11 -0
- package/typings/creator-settings.d.ts +2 -0
package/fesm/i18n/arabic.mjs
CHANGED
package/fesm/i18n/bulgarian.mjs
CHANGED
package/fesm/i18n/burmese.mjs
CHANGED
package/fesm/i18n/croatian.mjs
CHANGED
package/fesm/i18n/czech.mjs
CHANGED
package/fesm/i18n/danish.mjs
CHANGED
package/fesm/i18n/dutch.mjs
CHANGED
package/fesm/i18n/english.mjs
CHANGED
package/fesm/i18n/finnish.mjs
CHANGED
package/fesm/i18n/french.mjs
CHANGED
package/fesm/i18n/german.mjs
CHANGED
package/fesm/i18n/greek.mjs
CHANGED
package/fesm/i18n/hebrew.mjs
CHANGED
package/fesm/i18n/hungarian.mjs
CHANGED
package/fesm/i18n/index.mjs
CHANGED
package/fesm/i18n/indonesian.mjs
CHANGED
package/fesm/i18n/italian.mjs
CHANGED
package/fesm/i18n/japanese.mjs
CHANGED
package/fesm/i18n/korean.mjs
CHANGED
package/fesm/i18n/malay.mjs
CHANGED
package/fesm/i18n/mongolian.mjs
CHANGED
package/fesm/i18n/norwegian.mjs
CHANGED
package/fesm/i18n/persian.mjs
CHANGED
package/fesm/i18n/polish.mjs
CHANGED
package/fesm/i18n/portuguese.mjs
CHANGED
package/fesm/i18n/romanian.mjs
CHANGED
package/fesm/i18n/russian.mjs
CHANGED
package/fesm/i18n/slovak.mjs
CHANGED
package/fesm/i18n/slovenian.mjs
CHANGED
package/fesm/i18n/spanish.mjs
CHANGED
package/fesm/i18n/swedish.mjs
CHANGED
package/fesm/i18n/tajik.mjs
CHANGED
package/fesm/i18n/thai.mjs
CHANGED
package/fesm/i18n/turkish.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v2.3.
|
|
2
|
+
* SurveyJS Creator v2.3.12
|
|
3
3
|
* (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* Github: https://github.com/surveyjs/survey-creator
|
|
5
5
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -14864,9 +14864,14 @@ class PropertyGridModel {
|
|
|
14864
14864
|
onMatrixCellValueChanging(options) {
|
|
14865
14865
|
if (this.isCellCreating)
|
|
14866
14866
|
return;
|
|
14867
|
+
const obj = options.row.editingObj;
|
|
14868
|
+
const propName = options.columnName;
|
|
14869
|
+
if (this.options.trimValues && propName === "value" && obj.isDescendantOf("itemvalue") && typeof options.value === "string") {
|
|
14870
|
+
options.value = options.value.trim();
|
|
14871
|
+
}
|
|
14867
14872
|
var changingOptions = {
|
|
14868
|
-
obj:
|
|
14869
|
-
propertyName:
|
|
14873
|
+
obj: obj,
|
|
14874
|
+
propertyName: propName,
|
|
14870
14875
|
value: options.oldValue,
|
|
14871
14876
|
newValue: options.value,
|
|
14872
14877
|
doValidation: false
|
|
@@ -18480,10 +18485,8 @@ class SurveyConditionEditorItem extends ConditionEditorItem {
|
|
|
18480
18485
|
return val;
|
|
18481
18486
|
if (val[0] == "[")
|
|
18482
18487
|
return val.replace(/(?!^)(['])(?!$)/g, "\\$1");
|
|
18483
|
-
if (!this.isQuote(val
|
|
18484
|
-
val = "'" + val;
|
|
18485
|
-
if (!this.isQuote(val[val.length - 1]))
|
|
18486
|
-
val = val + "'";
|
|
18488
|
+
if (!this.isQuote(val))
|
|
18489
|
+
val = "'" + val + "'";
|
|
18487
18490
|
return val.replace(/(?!^)(['"])(?!$)/g, "\\$1");
|
|
18488
18491
|
}
|
|
18489
18492
|
isNumeric(val) {
|
|
@@ -25641,9 +25644,13 @@ class StringEditorViewModelBase extends Base {
|
|
|
25641
25644
|
window === null || window === void 0 ? void 0 : window.getSelection().removeAllRanges();
|
|
25642
25645
|
}
|
|
25643
25646
|
getClearedText(target) {
|
|
25644
|
-
|
|
25645
|
-
|
|
25647
|
+
let html = target.innerHTML;
|
|
25648
|
+
let text = target.innerText;
|
|
25646
25649
|
let mdText = null;
|
|
25650
|
+
if (this.creator && this.creator.trimValues && this.isInplaceForEditValues) {
|
|
25651
|
+
html = html.trim();
|
|
25652
|
+
text = text.trim();
|
|
25653
|
+
}
|
|
25647
25654
|
if (!this.editAsText && this.creator) {
|
|
25648
25655
|
const options = {
|
|
25649
25656
|
element: this.locString.owner,
|
|
@@ -28333,6 +28340,7 @@ class SurveyCreatorModel extends Base {
|
|
|
28333
28340
|
var _a;
|
|
28334
28341
|
super();
|
|
28335
28342
|
this.options = options;
|
|
28343
|
+
this.trimValues = false;
|
|
28336
28344
|
/**
|
|
28337
28345
|
* Specifies whether the "Add Question" button remembers the type of the most recently added question and uses it for subsequent questions.
|
|
28338
28346
|
*
|
|
@@ -29072,6 +29080,17 @@ class SurveyCreatorModel extends Base {
|
|
|
29072
29080
|
* @see showTranslationTab
|
|
29073
29081
|
*/
|
|
29074
29082
|
this.clearTranslationsOnSourceTextChange = false;
|
|
29083
|
+
/**
|
|
29084
|
+
* Specifies how deeply choice options in Radio Button Group and Checkboxes questions can contain nested survey content such as questions or panels.
|
|
29085
|
+
*
|
|
29086
|
+
* - 0 - Disables content nesting for choice options.
|
|
29087
|
+
* - 1 - Allows first-level choice options to contain survey elements.
|
|
29088
|
+
* - 2 - Allows first- and second-level choice options to contain survey elements, and so on.
|
|
29089
|
+
*
|
|
29090
|
+
* Default value: 0
|
|
29091
|
+
*
|
|
29092
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/nest-sub-questions-within-choice-options/ (linkStyle))
|
|
29093
|
+
*/
|
|
29075
29094
|
this.maxChoiceContentNestingLevel = 0;
|
|
29076
29095
|
/**
|
|
29077
29096
|
* An event that is raised to determine whether in-place editing is allowed for an element on the design surface. Use this event to enable or disable in-place editing for specific elements.
|
|
@@ -29775,6 +29794,8 @@ class SurveyCreatorModel extends Base {
|
|
|
29775
29794
|
}
|
|
29776
29795
|
}
|
|
29777
29796
|
updateConditionsOnNameChanged(obj, propertyName, oldValue) {
|
|
29797
|
+
if (this.isCreatingNewElement)
|
|
29798
|
+
return;
|
|
29778
29799
|
if (this.isObjQuestion(obj)) {
|
|
29779
29800
|
if (propertyName === "name" && !obj["valueName"]) {
|
|
29780
29801
|
this.updateLogicOnQuestionNameChanged(oldValue, obj["name"]);
|
|
@@ -29881,7 +29902,9 @@ class SurveyCreatorModel extends Base {
|
|
|
29881
29902
|
this.addNewElementReason = "DROPPED_FROM_TOOLBOX";
|
|
29882
29903
|
}
|
|
29883
29904
|
doOnQuestionAdded(question, parentPanel) {
|
|
29905
|
+
this.isCreatingNewElement = true;
|
|
29884
29906
|
question.name = this.generateUniqueName(question, question.name);
|
|
29907
|
+
this.isCreatingNewElement = false;
|
|
29885
29908
|
var page = this.getPageByElement(question);
|
|
29886
29909
|
if (!page)
|
|
29887
29910
|
return;
|
|
@@ -37324,8 +37347,8 @@ class CreatorPreset extends CreatorPresetBase {
|
|
|
37324
37347
|
}
|
|
37325
37348
|
|
|
37326
37349
|
let Version;
|
|
37327
|
-
Version = `${"2.3.
|
|
37328
|
-
checkLibraryVersion(`${"2.3.
|
|
37350
|
+
Version = `${"2.3.12"}`;
|
|
37351
|
+
checkLibraryVersion(`${"2.3.12"}`, "survey-creator-core");
|
|
37329
37352
|
|
|
37330
37353
|
export { AceJsonEditorModel, ColorCalculator, CreatorAction, CreatorBase, CreatorEvent, CreatorPreset, CreatorPresetBase, CreatorPresetPropertyGrid, CreatorPresetPropertyGridDefinition, CreatorPresetTabs, CreatorPresetToolbox, CreatorPresetToolboxConfigurator, CreatorPresetToolboxDefinition, CreatorResponsivityManager, CreatorThemeModel, CreatorThemes, DEFAULT_MONITOR_DPI, DefaultFonts, DragDropSurveyElements, EditorLocalization, EmptySurveyCreatorOptions, FooterToolbarActionContainer, HEXToRGB, HSBToRGB, HueColorCalculator, ImageItemValueWrapperViewModel, ItemValueWrapperViewModel, JsonDuplicateNameError, JsonEditorBaseModel, LogicEvent, LogoImageViewModel, MatrixCellWrapperEditSurvey, MatrixCellWrapperViewModel, MenuButton, ObjType, ObjectSelector, ObjectSelectorItem, ObjectSelectorModel, PageAdorner, PageNavigatorViewModel, PagesController, PredefinedBackgroundColors, PredefinedColors, PredefinedCreatorThemes, PredefinedThemes, PropertyEditorSetupValue, PropertyGridCellsEditor, PropertyGridEditor, PropertyGridEditorBackgroundCornerRadius, PropertyGridEditorBindings, PropertyGridEditorBoolean, PropertyGridEditorCollection, PropertyGridEditorColor, PropertyGridEditorColorWithAlpha, PropertyGridEditorCondition, PropertyGridEditorDateTime, PropertyGridEditorDropdown, PropertyGridEditorExpression, PropertyGridEditorFontSettings, PropertyGridEditorHtml, PropertyGridEditorImageSize, PropertyGridEditorMatrix, PropertyGridEditorMatrixCalculatedValues, PropertyGridEditorMatrixColumns, PropertyGridEditorMatrixHtmlConditions, PropertyGridEditorMatrixItemValues, PropertyGridEditorMatrixLayoutColumns, PropertyGridEditorMatrixMultipleTypes, PropertyGridEditorMatrixMutlipleTextItems, PropertyGridEditorMatrixPages, PropertyGridEditorMatrixRateValues, PropertyGridEditorMatrixTriggers, PropertyGridEditorMatrixUrlConditions, PropertyGridEditorMatrixValidators, PropertyGridEditorNumber, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionCarryForward, PropertyGridEditorQuestionHeader, PropertyGridEditorQuestionMaskSettings, PropertyGridEditorQuestionRestfull, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue, PropertyGridEditorSet, PropertyGridEditorShadowEffects, PropertyGridEditorSpinEdit, PropertyGridEditorString, PropertyGridEditorStringArray, PropertyGridEditorStringBase, PropertyGridEditorSwitchToggle, PropertyGridEditorText, PropertyGridEditorUndefinedBoolean, PropertyGridLinkEditor, PropertyGridModel, PropertyGridPanelValueEditor, PropertyGridRowValueEditor, PropertyGridTitleActionsCreator, PropertyGridTriggerValueEditor, PropertyGridTriggerValueInLogicEditor, PropertyGridValueEditor, PropertyGridValueEditorBase, PropertyGridViewModel, PropertyJSONGenerator, QuestionAdornerViewModel, QuestionColorModel, QuestionCommentWithResetModel, QuestionConvertMode, QuestionConverter, QuestionDropdownAdornerViewModel, QuestionEmbeddedSurveyModel, QuestionFileEditorModel, QuestionImageAdornerViewModel, QuestionLinkValueModel, QuestionRatingAdornerViewModel, QuestionSpinEditorModel, QuestionTextWithResetModel, QuestionToolbox, QuestionToolboxCategory, QuestionToolboxItem, RGBToHSB, ResetValueAdorner, ResizeManager, RowViewModel, SearchManager, SearchManagerPropertyGrid, SearchManagerToolbox, SidebarHeaderModel, SidebarModel, SidebarPageModel, StringEditorConnector, StringEditorViewModelBase, StringItemsNavigatorBase, SurveyCreatorModel, SurveyHelper, SurveyJSON5, SurveyLogic, SurveyLogicUI, SurveyQuestionEditorDefinition, SurveyQuestionEditorPropertyDefinition, SurveyQuestionEditorTabDefinition, SurveyQuestionProperties, SurveyResultsItemModel, SurveyResultsModel, SurveySimulatorModel, SurveyTextWorker, SurveyTextWorkerError, SurveyTextWorkerJsonError, SurveyTextWorkerParserError, Switcher, TabControlModel, TabDesignerPlugin, TabDesignerViewModel, TabJsonEditorAcePlugin, TabJsonEditorBasePlugin, TabJsonEditorTextareaPlugin, TabLogicPlugin, TabTestPlugin, TabTranslationPlugin, TabbedMenuContainer, TabbedMenuItem, TabbedMenuMode, TestSurveyTabViewModel, TextareaJsonEditorModel, ThemeModelEditorDefinition, ThemeTabPlugin, ThemeTabViewModel, Themes, ToolbarActionContainer, ToolboxToolViewModel, Transaction, Translation, TranslationEditor, TranslationForEditor, TranslationGroup, TranslationItem, TranslationItemBase, TranslationItemString, UndoRedoAction, UndoRedoArrayAction, UndoRedoManager, UndoRedoPlugin, Version, assign, assignDefaultClasses, backgroundCornerRadiusFromCssVariable, backgroundCornerRadiusToCssVariable, calculateDragOverLocation, calculateIsEdge, calculateIsSide, capitalize, clearNewLines, colorsAreEqual, convertRgbaToString, copyCssClasses, copyObject, createBoxShadow, createBoxShadowReset, createColor, createExportCSVAction, createImportCSVAction, creatorThemeModelEditorDefinition, creatorThemeModelPropertyGridDefinition, defaultCreatorThemesOrder, defaultPropertyGridDefinition, defaultStrings, defaultThemesOrder, editableStringRendererName, editorLocalization, enStrings, findParentNode, focusFirstControl, fontsettingsFromCssVariable, fontsettingsToCssVariable, getAcceptedTypesByContentMode, getElementWrapperComponentData, getElementWrapperComponentName, getFirstNonTextElement, getItemValueSeparator, getItemValueWrapperComponentData, getItemValueWrapperComponentName, getLocString, getLocaleStrings, getNextItemText, getNextItemValue, getNextValue, getNodesFromKoComponentInfo, getOS, getPredefinedBackgoundColorsChoices, getPredefinedColorsItemValues, getQuestionContentWrapperComponentName, getQuestionFromObj, getRGBaChannelValues, getRowWrapperComponentData, getRowWrapperComponentName, iconsV1, iconsV2, ignoreUndoRedo, imageMimeTypes, ingectAlpha, initLogicOperator, initialSettingsAllowShowEmptyTitleInDesignMode, initializeDesignTimeSurveyModel, isStringEditable, isTextInput, listComponentCss, editorLocalization as localization, logicCss, notShortCircuitAnd, parseBoxShadow, parseColor, parseRgbaFromString, propertyGridCss, registerAdorner, registerCreatorTheme, registerSurveyTheme, removeAdorners, roundTo2Decimals, saveToFileHandler, scrollElementIntoView, select, setSurveyJSONForPropertyGrid, settings, setupLocale, simulatorDevices, svgBundle, themeModelPropertyGridDefinition, toggleHovered, translationCss, trimBoxShadowValue, trimEmptyFields, undoRedoTransaction, updateBackgroundCornerRadiusJSON, updateFontSettingsJSON, updateShadowEffectsJSON, updateThemeEditorsDefaultFontFamily, updatecoloralphaJSON, wrapTextByCurlyBraces };
|
|
37331
37354
|
//# sourceMappingURL=survey-creator-core.mjs.map
|