survey-creator-core 2.0.8 → 2.0.9
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/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 +83 -24
- 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/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 +14 -14
- package/survey-creator-core.fontless.css +13 -13
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +2 -2
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
- package/survey-creator-core.js +88 -28
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +3 -3
- 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/components/action-container-view-model.d.ts +3 -3
- package/typings/components/tabs/theme-plugin.d.ts +2 -0
- package/typings/creator-base.d.ts +49 -9
- package/typings/creator-events-api.d.ts +6 -6
- package/typings/creator-options.d.ts +26 -6
- package/typings/toolbox.d.ts +13 -1
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/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.0.
|
|
2
|
+
* SurveyJS Creator v2.0.9
|
|
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
|
|
@@ -4957,6 +4957,8 @@ class QuestionToolbox extends AdaptiveActionContainer {
|
|
|
4957
4957
|
}
|
|
4958
4958
|
/**
|
|
4959
4959
|
* Adds a new item to the Toolbox.
|
|
4960
|
+
*
|
|
4961
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/page-break-and-page-merge/ (linkStyle))
|
|
4960
4962
|
* @param item A [toolbox item configuration](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem).
|
|
4961
4963
|
* @param index *(Optional)* A zero-based index at which to insert the item. If you do not specify this parameter, the item is added to the end.
|
|
4962
4964
|
* @see removeItem
|
|
@@ -5031,6 +5033,8 @@ class QuestionToolbox extends AdaptiveActionContainer {
|
|
|
5031
5033
|
}
|
|
5032
5034
|
/**
|
|
5033
5035
|
* Returns a [toolbox item](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolboxitem) with a specified name.
|
|
5036
|
+
*
|
|
5037
|
+
* [View Toolbox Customization Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-customization/ (linkStyle))
|
|
5034
5038
|
* @param name A toolbox item's [`name`](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem#name).
|
|
5035
5039
|
* @returns A toolbox item or `null` if a toolbox item with the specified name isn't found.
|
|
5036
5040
|
*/
|
|
@@ -5046,6 +5050,8 @@ class QuestionToolbox extends AdaptiveActionContainer {
|
|
|
5046
5050
|
* If this property is `false`, the currently expanded category collapses when a user expands another category.
|
|
5047
5051
|
*
|
|
5048
5052
|
* Default value: `false`
|
|
5053
|
+
*
|
|
5054
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-categories/ (linkStyle))
|
|
5049
5055
|
* @see keepAllCategoriesExpanded
|
|
5050
5056
|
*/
|
|
5051
5057
|
get allowExpandMultipleCategories() {
|
|
@@ -5057,6 +5063,8 @@ class QuestionToolbox extends AdaptiveActionContainer {
|
|
|
5057
5063
|
}
|
|
5058
5064
|
/**
|
|
5059
5065
|
* Specifies whether to expand all categories without the capability to collapse any of them. Applies only if [`showCategoryTitles`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#showCategoryTitles) is `true`.
|
|
5066
|
+
*
|
|
5067
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-categories/ (linkStyle))
|
|
5060
5068
|
* @see allowExpandMultipleCategories
|
|
5061
5069
|
*/
|
|
5062
5070
|
get keepAllCategoriesExpanded() {
|
|
@@ -5072,7 +5080,9 @@ class QuestionToolbox extends AdaptiveActionContainer {
|
|
|
5072
5080
|
*
|
|
5073
5081
|
* Default value: `false`
|
|
5074
5082
|
*
|
|
5075
|
-
*
|
|
5083
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-categories/ (linkStyle))
|
|
5084
|
+
*
|
|
5085
|
+
* > If this property is disabled, the Toolbox hides the titles but continues to display horizontal lines that divide categories. To remove these lines as well, call the [`removeCategories()`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#removeCategories) method.
|
|
5076
5086
|
* @see allowExpandMultipleCategories
|
|
5077
5087
|
* @see keepAllCategoriesExpanded
|
|
5078
5088
|
*/
|
|
@@ -5248,6 +5258,8 @@ class QuestionToolbox extends AdaptiveActionContainer {
|
|
|
5248
5258
|
}
|
|
5249
5259
|
/**
|
|
5250
5260
|
* Removes all categories from the Toolbox.
|
|
5261
|
+
*
|
|
5262
|
+
* [View Toolbox Customization Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-customization/ (linkStyle))
|
|
5251
5263
|
*/
|
|
5252
5264
|
removeCategories() {
|
|
5253
5265
|
const allTypes = ElementFactory.Instance.getAllToolboxTypes();
|
|
@@ -15620,12 +15632,11 @@ __decorate([
|
|
|
15620
15632
|
], MenuButton.prototype, "contentType", void 0);
|
|
15621
15633
|
|
|
15622
15634
|
class SurveyElementResponsivityManager extends ResponsivityManager {
|
|
15623
|
-
constructor(container, model
|
|
15635
|
+
constructor(container, model) {
|
|
15624
15636
|
super(container, model);
|
|
15625
|
-
this.onGetAllowResponsivenessCallback = onGetAllowResponsivenessCallback;
|
|
15626
15637
|
}
|
|
15627
15638
|
shouldProcessResponsiveness() {
|
|
15628
|
-
return
|
|
15639
|
+
return this["model"].isResponsivenessAllowed && super.shouldProcessResponsiveness();
|
|
15629
15640
|
}
|
|
15630
15641
|
}
|
|
15631
15642
|
class SurveyElementActionContainer extends AdaptiveActionContainer {
|
|
@@ -15658,7 +15669,7 @@ class SurveyElementActionContainer extends AdaptiveActionContainer {
|
|
|
15658
15669
|
constructor() {
|
|
15659
15670
|
super();
|
|
15660
15671
|
this.alwaysShrink = false;
|
|
15661
|
-
this.
|
|
15672
|
+
this._isResponsivenessAllowed = false;
|
|
15662
15673
|
this.dotsItem.iconSize = "auto";
|
|
15663
15674
|
this.dotsItem.popupModel.cssClass += " svc-creator-popup";
|
|
15664
15675
|
this.hiddenItemsListModel.cssClasses = listComponentCss;
|
|
@@ -15706,13 +15717,16 @@ class SurveyElementActionContainer extends AdaptiveActionContainer {
|
|
|
15706
15717
|
this.hiddenItemsListModel.setItems(items.filter(i => i.mode == "popup").map(i => i.innerItem));
|
|
15707
15718
|
}
|
|
15708
15719
|
allowResponsiveness() {
|
|
15709
|
-
if (!this.
|
|
15710
|
-
this.
|
|
15720
|
+
if (!this._isResponsivenessAllowed) {
|
|
15721
|
+
this._isResponsivenessAllowed = true;
|
|
15711
15722
|
this.updateCallback && this.updateCallback(true);
|
|
15712
15723
|
}
|
|
15713
15724
|
}
|
|
15725
|
+
get isResponsivenessAllowed() {
|
|
15726
|
+
return this._isResponsivenessAllowed;
|
|
15727
|
+
}
|
|
15714
15728
|
createResponsivityManager(container) {
|
|
15715
|
-
return new SurveyElementResponsivityManager(container, this
|
|
15729
|
+
return new SurveyElementResponsivityManager(container, this);
|
|
15716
15730
|
}
|
|
15717
15731
|
}
|
|
15718
15732
|
|
|
@@ -25575,6 +25589,8 @@ class ThemeTabPlugin {
|
|
|
25575
25589
|
* A `ThemeTabPlugin` instance that raised the event.
|
|
25576
25590
|
* - `options.theme`: [`ITheme`](https://surveyjs.io/form-library/documentation/api-reference/itheme)\
|
|
25577
25591
|
* A selected theme.
|
|
25592
|
+
*
|
|
25593
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/save-custom-theme/ (linkStyle))
|
|
25578
25594
|
* @see availableThemes
|
|
25579
25595
|
* @see addTheme
|
|
25580
25596
|
* @see removeTheme
|
|
@@ -27051,7 +27067,7 @@ class SurveyCreatorModel extends Base {
|
|
|
27051
27067
|
getProcessedText(text) { return text; }
|
|
27052
27068
|
getLocale() { return this.locale; }
|
|
27053
27069
|
/**
|
|
27054
|
-
* Specifies whether to display the Preview tab.
|
|
27070
|
+
* Specifies whether to display the [Preview](https://surveyjs.io/survey-creator/documentation/end-user-guide/user-interface#preview-tab) tab.
|
|
27055
27071
|
*
|
|
27056
27072
|
* Default value: `true`
|
|
27057
27073
|
* @see activeTab
|
|
@@ -27090,6 +27106,10 @@ class SurveyCreatorModel extends Base {
|
|
|
27090
27106
|
*
|
|
27091
27107
|
* - `"buttons"` (default)
|
|
27092
27108
|
* The Property Grid displays the properties of a currently selected category. Users can switch between categories using buttons on the right side of the Property Grid.
|
|
27109
|
+
*
|
|
27110
|
+
* [Accordion Mode Demo](https://surveyjs.io/survey-creator/examples/property-grid-accordion-view/ (linkStyle))
|
|
27111
|
+
*
|
|
27112
|
+
* [Buttons Mode Demo](https://surveyjs.io/survey-creator/examples/free-nps-survey-template/ (linkStyle))
|
|
27093
27113
|
*/
|
|
27094
27114
|
get propertyGridNavigationMode() {
|
|
27095
27115
|
return this.showOneCategoryInPropertyGrid ? "buttons" : "accordion";
|
|
@@ -27175,6 +27195,8 @@ class SurveyCreatorModel extends Base {
|
|
|
27175
27195
|
*
|
|
27176
27196
|
* - `"bypage"`
|
|
27177
27197
|
* Questions and panels are divided between pages. Users can use the page navigator to switch to a required page.
|
|
27198
|
+
*
|
|
27199
|
+
* [View Page-By-Page Mode Demo](https://surveyjs.io/survey-creator/examples/page-level-editing/ (linkStyle))
|
|
27178
27200
|
* @see allowModifyPages
|
|
27179
27201
|
*/
|
|
27180
27202
|
get pageEditMode() {
|
|
@@ -27379,6 +27401,8 @@ class SurveyCreatorModel extends Base {
|
|
|
27379
27401
|
//#region Theme
|
|
27380
27402
|
/**
|
|
27381
27403
|
* An object that enables you to manage UI themes. Refer to the following API section for information on available properties, methods, and events: [`ThemeTabPlugin`](https://surveyjs.io/survey-creator/documentation/api-reference/themetabplugin).
|
|
27404
|
+
*
|
|
27405
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/save-custom-theme/ (linkStyle))
|
|
27382
27406
|
* @see showThemeTab
|
|
27383
27407
|
* @see saveThemeFunc
|
|
27384
27408
|
*/
|
|
@@ -27389,6 +27413,8 @@ class SurveyCreatorModel extends Base {
|
|
|
27389
27413
|
* A function that is called each time users click the [Save button](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#showSaveButton) or [auto-save](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#autoSaveEnabled) is triggered to save a theme JSON object.
|
|
27390
27414
|
*
|
|
27391
27415
|
* For more information, refer to the [Save and Load Custom Themes](https://surveyjs.io/survey-creator/documentation/theme-editor#save-and-load-custom-themes) help topic.
|
|
27416
|
+
*
|
|
27417
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/change-form-theme/ (linkStyle))
|
|
27392
27418
|
* @see showThemeTab
|
|
27393
27419
|
* @see themeEditor
|
|
27394
27420
|
* @see saveSurveyFunc
|
|
@@ -27784,11 +27810,11 @@ class SurveyCreatorModel extends Base {
|
|
|
27784
27810
|
*/
|
|
27785
27811
|
this.onDefineElementMenuItems = this.onElementGetActions;
|
|
27786
27812
|
/**
|
|
27787
|
-
* An event that is raised when Survey Creator adds properties to a survey element selected on the design surface. Handle this event if you cancel the addition of certain properties and thus [hide them from the Property Grid](https://surveyjs.io/survey-creator/documentation/property-grid-customization#hide-properties-from-the-property-grid).
|
|
27813
|
+
* An event that is raised when Survey Creator adds properties to a survey element selected on the design surface. Handle this event if you want to cancel the addition of certain properties and thus [hide them from the Property Grid](https://surveyjs.io/survey-creator/documentation/property-grid-customization#hide-properties-from-the-property-grid).
|
|
27788
27814
|
*
|
|
27789
27815
|
* For information on event handler parameters, refer to descriptions within the interface.
|
|
27790
27816
|
*
|
|
27791
|
-
* [View Demo](https://surveyjs.io/survey-creator/examples/
|
|
27817
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/remove-properties-from-property-grid/ (linkStyle))
|
|
27792
27818
|
*/
|
|
27793
27819
|
this.onPropertyShowing = this.addCreatorEvent();
|
|
27794
27820
|
this.onCanShowProperty = this.onPropertyShowing;
|
|
@@ -27807,7 +27833,11 @@ class SurveyCreatorModel extends Base {
|
|
|
27807
27833
|
*/
|
|
27808
27834
|
this.onPropertyEditorCreated = this.addCreatorEvent();
|
|
27809
27835
|
/**
|
|
27810
|
-
* An event that is raised when title actions are added to a property editor. Title actions are most often used to reveal hints
|
|
27836
|
+
* An event that is raised when title actions are added to a property editor. Title actions are most often used to reveal property hints. Handle this event you want to add, remove, or modify the title actions.
|
|
27837
|
+
*
|
|
27838
|
+
* For information on event handler parameters, refer to descriptions within the interface.
|
|
27839
|
+
*
|
|
27840
|
+
* [View Demo](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#onPropertyEditorUpdateTitleActions (linkStyle))
|
|
27811
27841
|
*/
|
|
27812
27842
|
this.onPropertyEditorUpdateTitleActions = this.addCreatorEvent();
|
|
27813
27843
|
/**
|
|
@@ -28072,6 +28102,10 @@ class SurveyCreatorModel extends Base {
|
|
|
28072
28102
|
* });
|
|
28073
28103
|
* ```
|
|
28074
28104
|
*
|
|
28105
|
+
* [Multilingual Form Demo](https://surveyjs.io/survey-creator/examples/create-multilingual-forms/ (linkStyle))
|
|
28106
|
+
*
|
|
28107
|
+
* [AI-Powered Translation Demo](https://surveyjs.io/survey-creator/examples/ai-translation/ (linkStyle))
|
|
28108
|
+
*
|
|
28075
28109
|
* > Survey Creator does not include a machine translation service out of the box. Our component only provides a UI for calling the service API.
|
|
28076
28110
|
* @see startMachineTranslationTo
|
|
28077
28111
|
*/
|
|
@@ -28089,6 +28123,10 @@ class SurveyCreatorModel extends Base {
|
|
|
28089
28123
|
this.onTranslationItemChanging = this.addCreatorEvent();
|
|
28090
28124
|
/**
|
|
28091
28125
|
* An event that is raised when users drag and drop survey elements within the design surface. Use this event to control drag and drop operations.
|
|
28126
|
+
*
|
|
28127
|
+
* For information on event handler parameters, refer to descriptions within the interface.
|
|
28128
|
+
*
|
|
28129
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/page-break-and-page-merge/ (linkStyle))
|
|
28092
28130
|
* @see onDragStart
|
|
28093
28131
|
* @see onDragEnd
|
|
28094
28132
|
*/
|
|
@@ -28170,6 +28208,8 @@ class SurveyCreatorModel extends Base {
|
|
|
28170
28208
|
* Specifies whether Survey Creator UI elements display survey, page, and question titles instead of their names.
|
|
28171
28209
|
*
|
|
28172
28210
|
* Default value: `false`
|
|
28211
|
+
*
|
|
28212
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/dynamically-modify-newly-added-questions/ (linkStyle))
|
|
28173
28213
|
* @see onElementGetDisplayName
|
|
28174
28214
|
*/
|
|
28175
28215
|
this.useElementTitles = false;
|
|
@@ -28381,6 +28421,8 @@ class SurveyCreatorModel extends Base {
|
|
|
28381
28421
|
* Specifies whether to clear translations to other languages when a source language translation is changed.
|
|
28382
28422
|
*
|
|
28383
28423
|
* Default value: `false`
|
|
28424
|
+
*
|
|
28425
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/ai-translation/ (linkStyle))
|
|
28384
28426
|
* @see showTranslationTab
|
|
28385
28427
|
*/
|
|
28386
28428
|
this.clearTranslationsOnSourceTextChange = false;
|
|
@@ -28460,6 +28502,8 @@ class SurveyCreatorModel extends Base {
|
|
|
28460
28502
|
* Specifies whether to show the sidebar that displays the Property Grid.
|
|
28461
28503
|
*
|
|
28462
28504
|
* Default value: `true`
|
|
28505
|
+
*
|
|
28506
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/customize-property-editors/ (linkStyle))
|
|
28463
28507
|
* @see sidebarLocation
|
|
28464
28508
|
*/
|
|
28465
28509
|
get showSidebar() {
|
|
@@ -29975,6 +30019,8 @@ class SurveyCreatorModel extends Base {
|
|
|
29975
30019
|
}
|
|
29976
30020
|
/**
|
|
29977
30021
|
* Activates a specified category in Property Grid. Applies only if [`propertyGridNavigationMode`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#propertyGridNavigationMode) is `"buttons"`.
|
|
30022
|
+
*
|
|
30023
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/add-properties-to-property-grid/ (linkStyle))
|
|
29978
30024
|
* @param name A [category name](https://surveyjs.io/form-library/documentation/customize-question-types/add-custom-properties-to-a-form#category).
|
|
29979
30025
|
*/
|
|
29980
30026
|
activatePropertyGridCategory(name) {
|
|
@@ -30553,6 +30599,8 @@ class SurveyCreatorModel extends Base {
|
|
|
30553
30599
|
* Starts the translation of survey strings from the default language to one or more specified languages using a machine translation service, such as Google Translate or Microsoft Translator.
|
|
30554
30600
|
*
|
|
30555
30601
|
* This method only launches the operation by raising the [`onMachineTranslate`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#onMachineTranslate) event. Handle this event to perform the actual translation.
|
|
30602
|
+
*
|
|
30603
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/ai-translation/ (linkStyle))
|
|
30556
30604
|
* @param locales An array of locale codes that correspond to target languages, for example, `[ "de", "fr" ]`.
|
|
30557
30605
|
*/
|
|
30558
30606
|
startMachineTranslationTo(locales) {
|
|
@@ -30654,6 +30702,8 @@ class SurveyCreatorModel extends Base {
|
|
|
30654
30702
|
* A function that is called each time users click the [Save button](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#showSaveButton) or [auto-save](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#autoSaveEnabled) is triggered to save a survey JSON schema.
|
|
30655
30703
|
*
|
|
30656
30704
|
* For more information, refer to the Save and Load Survey Model Schemas help topic for your framework: [Angular](https://surveyjs.io/survey-creator/documentation/get-started-angular#save-and-load-survey-model-schemas) | [Vue](https://surveyjs.io/survey-creator/documentation/get-started-vue#save-and-load-survey-model-schemas) | [React](https://surveyjs.io/survey-creator/documentation/get-started-react#save-and-load-survey-model-schemas) | [HTML/CSS/JavaScript](https://surveyjs.io/survey-creator/documentation/get-started-html-css-javascript#save-and-load-survey-model-schemas).
|
|
30705
|
+
*
|
|
30706
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/set-how-survey-configuration-changes-are-saved/ (linkStyle))
|
|
30657
30707
|
* @see saveThemeFunc
|
|
30658
30708
|
*/
|
|
30659
30709
|
get saveSurveyFunc() {
|
|
@@ -32499,17 +32549,26 @@ class QuestionAdornerViewModel extends SurveyElementAdornerBase {
|
|
|
32499
32549
|
return newAction;
|
|
32500
32550
|
}
|
|
32501
32551
|
jsonsAreCompatible(objJson, json) {
|
|
32502
|
-
let
|
|
32503
|
-
|
|
32504
|
-
|
|
32505
|
-
|
|
32506
|
-
|
|
32507
|
-
|
|
32508
|
-
|
|
32509
|
-
|
|
32552
|
+
let question = this.element;
|
|
32553
|
+
if (!!objJson && !!objJson.type && question.getType() !== objJson.type) {
|
|
32554
|
+
question = QuestionFactory.Instance.createQuestion(objJson.type, "question") || this.element;
|
|
32555
|
+
}
|
|
32556
|
+
const keys = Object.keys(json);
|
|
32557
|
+
for (let i = 0; i < keys.length; i++) {
|
|
32558
|
+
const p = keys[i];
|
|
32559
|
+
if (!objJson && p === "type")
|
|
32560
|
+
continue;
|
|
32561
|
+
let propertyValue = !!objJson ? objJson[p] : question.getPropertyValue(p);
|
|
32562
|
+
if (!!objJson && propertyValue === undefined) {
|
|
32563
|
+
propertyValue = p === "type" ? question.getType() : question.getDefaultPropertyValue(p);
|
|
32564
|
+
}
|
|
32565
|
+
if (!Helpers.isTwoValueEquals(json[p], propertyValue))
|
|
32566
|
+
return false;
|
|
32567
|
+
}
|
|
32568
|
+
return true;
|
|
32510
32569
|
}
|
|
32511
32570
|
jsonIsCorresponded(json) {
|
|
32512
|
-
return this.jsonsAreCompatible(
|
|
32571
|
+
return this.jsonsAreCompatible(undefined, json);
|
|
32513
32572
|
}
|
|
32514
32573
|
toolboxItemIsCorresponded(toolboxItem, someItemSelectedAlready) {
|
|
32515
32574
|
const elementType = this.element.getType();
|
|
@@ -36265,8 +36324,8 @@ class CreatorPreset extends CreatorPresetBase {
|
|
|
36265
36324
|
}
|
|
36266
36325
|
|
|
36267
36326
|
let Version;
|
|
36268
|
-
Version = `${"2.0.
|
|
36269
|
-
checkLibraryVersion(`${"2.0.
|
|
36327
|
+
Version = `${"2.0.9"}`;
|
|
36328
|
+
checkLibraryVersion(`${"2.0.9"}`, "survey-creator-core");
|
|
36270
36329
|
|
|
36271
36330
|
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, 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, getItemValueWrapperComponentData, getItemValueWrapperComponentName, getLocString, getLocaleStrings, getNextItemText, getNextItemValue, getNextValue, getNodesFromKoComponentInfo, getOS, getPredefinedBackgoundColorsChoices, getPredefinedColorsItemValues, getQuestionContentWrapperComponentName, getQuestionFromObj, getRGBaChannelValues, 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, updatecoloralphaJSON, wrapTextByCurlyBraces };
|
|
36272
36331
|
//# sourceMappingURL=survey-creator-core.mjs.map
|