survey-creator-core 2.0.7 → 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 +124 -23
- 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 +15 -17
- package/survey-creator-core.fontless.css +14 -16
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +4 -4
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
- package/survey-creator-core.js +134 -23
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +5 -5
- 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 +11 -1
- 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/survey-creator-core.js
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
|
|
@@ -54,11 +54,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
|
|
57
|
+
var SurveyElementResponsivityManager = /** @class */ (function (_super) {
|
|
58
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyElementResponsivityManager, _super);
|
|
59
|
+
function SurveyElementResponsivityManager(container, model) {
|
|
60
|
+
return _super.call(this, container, model) || this;
|
|
61
|
+
}
|
|
62
|
+
SurveyElementResponsivityManager.prototype.shouldProcessResponsiveness = function () {
|
|
63
|
+
return this["model"].isResponsivenessAllowed && _super.prototype.shouldProcessResponsiveness.call(this);
|
|
64
|
+
};
|
|
65
|
+
return SurveyElementResponsivityManager;
|
|
66
|
+
}(survey_core__WEBPACK_IMPORTED_MODULE_1__.ResponsivityManager));
|
|
57
67
|
var SurveyElementActionContainer = /** @class */ (function (_super) {
|
|
58
68
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyElementActionContainer, _super);
|
|
59
69
|
function SurveyElementActionContainer() {
|
|
60
70
|
var _this = _super.call(this) || this;
|
|
61
71
|
_this.alwaysShrink = false;
|
|
72
|
+
_this._isResponsivenessAllowed = false;
|
|
62
73
|
_this.dotsItem.iconSize = "auto";
|
|
63
74
|
_this.dotsItem.popupModel.cssClass += " svc-creator-popup";
|
|
64
75
|
_this.hiddenItemsListModel.cssClasses = _list_theme__WEBPACK_IMPORTED_MODULE_2__.listComponentCss;
|
|
@@ -136,6 +147,22 @@ var SurveyElementActionContainer = /** @class */ (function (_super) {
|
|
|
136
147
|
}
|
|
137
148
|
this.hiddenItemsListModel.setItems(items.filter(function (i) { return i.mode == "popup"; }).map(function (i) { return i.innerItem; }));
|
|
138
149
|
};
|
|
150
|
+
SurveyElementActionContainer.prototype.allowResponsiveness = function () {
|
|
151
|
+
if (!this._isResponsivenessAllowed) {
|
|
152
|
+
this._isResponsivenessAllowed = true;
|
|
153
|
+
this.updateCallback && this.updateCallback(true);
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
Object.defineProperty(SurveyElementActionContainer.prototype, "isResponsivenessAllowed", {
|
|
157
|
+
get: function () {
|
|
158
|
+
return this._isResponsivenessAllowed;
|
|
159
|
+
},
|
|
160
|
+
enumerable: false,
|
|
161
|
+
configurable: true
|
|
162
|
+
});
|
|
163
|
+
SurveyElementActionContainer.prototype.createResponsivityManager = function (container) {
|
|
164
|
+
return new SurveyElementResponsivityManager(container, this);
|
|
165
|
+
};
|
|
139
166
|
return SurveyElementActionContainer;
|
|
140
167
|
}(survey_core__WEBPACK_IMPORTED_MODULE_1__.AdaptiveActionContainer));
|
|
141
168
|
|
|
@@ -3143,18 +3170,26 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
3143
3170
|
return newAction;
|
|
3144
3171
|
};
|
|
3145
3172
|
QuestionAdornerViewModel.prototype.jsonsAreCompatible = function (objJson, json) {
|
|
3146
|
-
var
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3173
|
+
var question = this.element;
|
|
3174
|
+
if (!!objJson && !!objJson.type && question.getType() !== objJson.type) {
|
|
3175
|
+
question = survey_core__WEBPACK_IMPORTED_MODULE_1__.QuestionFactory.Instance.createQuestion(objJson.type, "question") || this.element;
|
|
3176
|
+
}
|
|
3177
|
+
var keys = Object.keys(json);
|
|
3178
|
+
for (var i = 0; i < keys.length; i++) {
|
|
3179
|
+
var p = keys[i];
|
|
3180
|
+
if (!objJson && p === "type")
|
|
3181
|
+
continue;
|
|
3182
|
+
var propertyValue = !!objJson ? objJson[p] : question.getPropertyValue(p);
|
|
3183
|
+
if (!!objJson && propertyValue === undefined) {
|
|
3184
|
+
propertyValue = p === "type" ? question.getType() : question.getDefaultPropertyValue(p);
|
|
3185
|
+
}
|
|
3186
|
+
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__.Helpers.isTwoValueEquals(json[p], propertyValue))
|
|
3187
|
+
return false;
|
|
3188
|
+
}
|
|
3189
|
+
return true;
|
|
3155
3190
|
};
|
|
3156
3191
|
QuestionAdornerViewModel.prototype.jsonIsCorresponded = function (json) {
|
|
3157
|
-
return this.jsonsAreCompatible(
|
|
3192
|
+
return this.jsonsAreCompatible(undefined, json);
|
|
3158
3193
|
};
|
|
3159
3194
|
QuestionAdornerViewModel.prototype.toolboxItemIsCorresponded = function (toolboxItem, someItemSelectedAlready) {
|
|
3160
3195
|
var elementType = this.element.getType();
|
|
@@ -5548,6 +5583,29 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5548
5583
|
|
|
5549
5584
|
|
|
5550
5585
|
|
|
5586
|
+
function debounce(func, delay) {
|
|
5587
|
+
var timeout;
|
|
5588
|
+
return function () {
|
|
5589
|
+
var _this = this;
|
|
5590
|
+
var args = [];
|
|
5591
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
5592
|
+
args[_i] = arguments[_i];
|
|
5593
|
+
}
|
|
5594
|
+
clearTimeout(timeout);
|
|
5595
|
+
timeout = setTimeout(function () {
|
|
5596
|
+
func.apply(_this, args);
|
|
5597
|
+
}, delay);
|
|
5598
|
+
};
|
|
5599
|
+
}
|
|
5600
|
+
var updateRowsVisibility = debounce(function (target) {
|
|
5601
|
+
if (target.creator.rootElement.getAnimations({ subtree: true }).filter((function (animation) { return animation.effect.getComputedTiming().activeDuration !== Infinity && (animation.pending || animation.playState !== "finished"); }))[0]) {
|
|
5602
|
+
updateRowsVisibility(target);
|
|
5603
|
+
}
|
|
5604
|
+
else {
|
|
5605
|
+
target.creator.survey.pages.forEach(function (p) { return p.ensureRowsVisibility(); });
|
|
5606
|
+
target.creator.survey.getAllPanels().forEach(function (p) { return p.ensureRowsVisibility(); });
|
|
5607
|
+
}
|
|
5608
|
+
}, 50);
|
|
5551
5609
|
var SurveyElementAdornerBase = /** @class */ (function (_super) {
|
|
5552
5610
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyElementAdornerBase, _super);
|
|
5553
5611
|
function SurveyElementAdornerBase(creator, surveyElement) {
|
|
@@ -5609,6 +5667,7 @@ var SurveyElementAdornerBase = /** @class */ (function (_super) {
|
|
|
5609
5667
|
this.hoverTimeout = undefined;
|
|
5610
5668
|
this.isHovered = false;
|
|
5611
5669
|
}
|
|
5670
|
+
this.actionContainer.allowResponsiveness();
|
|
5612
5671
|
};
|
|
5613
5672
|
SurveyElementAdornerBase.prototype.getExpandCollapseAnimationOptions = function () {
|
|
5614
5673
|
var _this = this;
|
|
@@ -5810,6 +5869,9 @@ var SurveyElementAdornerBase = /** @class */ (function (_super) {
|
|
|
5810
5869
|
_this.onElementSelectedChanged(newValue);
|
|
5811
5870
|
}, "questionSelected");
|
|
5812
5871
|
this.restoreState();
|
|
5872
|
+
if (surveyElement.getPropertyValue("isSelectedInDesigner")) {
|
|
5873
|
+
this.actionContainer.allowResponsiveness();
|
|
5874
|
+
}
|
|
5813
5875
|
this.updateActionsContainer(surveyElement);
|
|
5814
5876
|
this.updateActionsProperties();
|
|
5815
5877
|
surveyElement.setPropertyValue(SurveyElementAdornerBase.AdornerValueName, this);
|
|
@@ -5864,6 +5926,7 @@ var SurveyElementAdornerBase = /** @class */ (function (_super) {
|
|
|
5864
5926
|
if (!isSelected)
|
|
5865
5927
|
return;
|
|
5866
5928
|
this.updateActionsProperties();
|
|
5929
|
+
this.actionContainer.allowResponsiveness();
|
|
5867
5930
|
};
|
|
5868
5931
|
SurveyElementAdornerBase.prototype.getExpandCollapseAction = function () {
|
|
5869
5932
|
var _this = this;
|
|
@@ -6045,17 +6108,16 @@ var SurveyElementAdornerBase = /** @class */ (function (_super) {
|
|
|
6045
6108
|
], SurveyElementAdornerBase.prototype, "allowExpandCollapse", void 0);
|
|
6046
6109
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
6047
6110
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)({
|
|
6048
|
-
onSet: function (val, target) {
|
|
6111
|
+
onSet: function (val, target, prevVal) {
|
|
6049
6112
|
target.renderedCollapsed = val;
|
|
6050
6113
|
if (!val)
|
|
6051
6114
|
target.needToRenderContent = true;
|
|
6052
6115
|
if (target.creator.designerStateManager && target.surveyElement) {
|
|
6053
6116
|
target.creator.designerStateManager.setElementCollapsed(target.surveyElement, val);
|
|
6054
6117
|
}
|
|
6055
|
-
|
|
6056
|
-
target
|
|
6057
|
-
|
|
6058
|
-
}, 50);
|
|
6118
|
+
if (!!val !== !!prevVal) {
|
|
6119
|
+
updateRowsVisibility(target);
|
|
6120
|
+
}
|
|
6059
6121
|
}
|
|
6060
6122
|
})
|
|
6061
6123
|
], SurveyElementAdornerBase.prototype, "collapsed", void 0);
|
|
@@ -14929,6 +14991,8 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
14929
14991
|
* A `ThemeTabPlugin` instance that raised the event.
|
|
14930
14992
|
* - `options.theme`: [`ITheme`](https://surveyjs.io/form-library/documentation/api-reference/itheme)\
|
|
14931
14993
|
* A selected theme.
|
|
14994
|
+
*
|
|
14995
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/save-custom-theme/ (linkStyle))
|
|
14932
14996
|
* @see availableThemes
|
|
14933
14997
|
* @see addTheme
|
|
14934
14998
|
* @see removeTheme
|
|
@@ -18279,6 +18343,7 @@ var TranslationEditor = /** @class */ (function () {
|
|
|
18279
18343
|
TranslationEditor.prototype.setupNavigationButtons = function (survey) {
|
|
18280
18344
|
var _this = this;
|
|
18281
18345
|
var navigationBar = new _action_container_view_model__WEBPACK_IMPORTED_MODULE_11__.SurveyElementActionContainer();
|
|
18346
|
+
navigationBar.allowResponsiveness();
|
|
18282
18347
|
survey["navigationBarValue"] = navigationBar;
|
|
18283
18348
|
survey.findLayoutElement("buttons-navigation").data = navigationBar;
|
|
18284
18349
|
navigationBar.locOwner = survey;
|
|
@@ -18924,11 +18989,11 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
18924
18989
|
*/
|
|
18925
18990
|
_this.onDefineElementMenuItems = _this.onElementGetActions;
|
|
18926
18991
|
/**
|
|
18927
|
-
* 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).
|
|
18992
|
+
* 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).
|
|
18928
18993
|
*
|
|
18929
18994
|
* For information on event handler parameters, refer to descriptions within the interface.
|
|
18930
18995
|
*
|
|
18931
|
-
* [View Demo](https://surveyjs.io/survey-creator/examples/
|
|
18996
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/remove-properties-from-property-grid/ (linkStyle))
|
|
18932
18997
|
*/
|
|
18933
18998
|
_this.onPropertyShowing = _this.addCreatorEvent();
|
|
18934
18999
|
_this.onCanShowProperty = _this.onPropertyShowing;
|
|
@@ -18947,7 +19012,11 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
18947
19012
|
*/
|
|
18948
19013
|
_this.onPropertyEditorCreated = _this.addCreatorEvent();
|
|
18949
19014
|
/**
|
|
18950
|
-
* An event that is raised when title actions are added to a property editor. Title actions are most often used to reveal hints
|
|
19015
|
+
* 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.
|
|
19016
|
+
*
|
|
19017
|
+
* For information on event handler parameters, refer to descriptions within the interface.
|
|
19018
|
+
*
|
|
19019
|
+
* [View Demo](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#onPropertyEditorUpdateTitleActions (linkStyle))
|
|
18951
19020
|
*/
|
|
18952
19021
|
_this.onPropertyEditorUpdateTitleActions = _this.addCreatorEvent();
|
|
18953
19022
|
/**
|
|
@@ -19212,6 +19281,10 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
19212
19281
|
* });
|
|
19213
19282
|
* ```
|
|
19214
19283
|
*
|
|
19284
|
+
* [Multilingual Form Demo](https://surveyjs.io/survey-creator/examples/create-multilingual-forms/ (linkStyle))
|
|
19285
|
+
*
|
|
19286
|
+
* [AI-Powered Translation Demo](https://surveyjs.io/survey-creator/examples/ai-translation/ (linkStyle))
|
|
19287
|
+
*
|
|
19215
19288
|
* > Survey Creator does not include a machine translation service out of the box. Our component only provides a UI for calling the service API.
|
|
19216
19289
|
* @see startMachineTranslationTo
|
|
19217
19290
|
*/
|
|
@@ -19229,6 +19302,10 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
19229
19302
|
_this.onTranslationItemChanging = _this.addCreatorEvent();
|
|
19230
19303
|
/**
|
|
19231
19304
|
* 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.
|
|
19305
|
+
*
|
|
19306
|
+
* For information on event handler parameters, refer to descriptions within the interface.
|
|
19307
|
+
*
|
|
19308
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/page-break-and-page-merge/ (linkStyle))
|
|
19232
19309
|
* @see onDragStart
|
|
19233
19310
|
* @see onDragEnd
|
|
19234
19311
|
*/
|
|
@@ -19310,6 +19387,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
19310
19387
|
* Specifies whether Survey Creator UI elements display survey, page, and question titles instead of their names.
|
|
19311
19388
|
*
|
|
19312
19389
|
* Default value: `false`
|
|
19390
|
+
*
|
|
19391
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/dynamically-modify-newly-added-questions/ (linkStyle))
|
|
19313
19392
|
* @see onElementGetDisplayName
|
|
19314
19393
|
*/
|
|
19315
19394
|
_this.useElementTitles = false;
|
|
@@ -19521,6 +19600,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
19521
19600
|
* Specifies whether to clear translations to other languages when a source language translation is changed.
|
|
19522
19601
|
*
|
|
19523
19602
|
* Default value: `false`
|
|
19603
|
+
*
|
|
19604
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/ai-translation/ (linkStyle))
|
|
19524
19605
|
* @see showTranslationTab
|
|
19525
19606
|
*/
|
|
19526
19607
|
_this.clearTranslationsOnSourceTextChange = false;
|
|
@@ -19561,7 +19642,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
19561
19642
|
SurveyCreatorModel.prototype.getLocale = function () { return this.locale; };
|
|
19562
19643
|
Object.defineProperty(SurveyCreatorModel.prototype, "showPreviewTab", {
|
|
19563
19644
|
/**
|
|
19564
|
-
* Specifies whether to display the Preview tab.
|
|
19645
|
+
* Specifies whether to display the [Preview](https://surveyjs.io/survey-creator/documentation/end-user-guide/user-interface#preview-tab) tab.
|
|
19565
19646
|
*
|
|
19566
19647
|
* Default value: `true`
|
|
19567
19648
|
* @see activeTab
|
|
@@ -19613,6 +19694,10 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
19613
19694
|
*
|
|
19614
19695
|
* - `"buttons"` (default)
|
|
19615
19696
|
* 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.
|
|
19697
|
+
*
|
|
19698
|
+
* [Accordion Mode Demo](https://surveyjs.io/survey-creator/examples/property-grid-accordion-view/ (linkStyle))
|
|
19699
|
+
*
|
|
19700
|
+
* [Buttons Mode Demo](https://surveyjs.io/survey-creator/examples/free-nps-survey-template/ (linkStyle))
|
|
19616
19701
|
*/
|
|
19617
19702
|
get: function () {
|
|
19618
19703
|
return this.showOneCategoryInPropertyGrid ? "buttons" : "accordion";
|
|
@@ -19731,6 +19816,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
19731
19816
|
*
|
|
19732
19817
|
* - `"bypage"`
|
|
19733
19818
|
* Questions and panels are divided between pages. Users can use the page navigator to switch to a required page.
|
|
19819
|
+
*
|
|
19820
|
+
* [View Page-By-Page Mode Demo](https://surveyjs.io/survey-creator/examples/page-level-editing/ (linkStyle))
|
|
19734
19821
|
* @see allowModifyPages
|
|
19735
19822
|
*/
|
|
19736
19823
|
get: function () {
|
|
@@ -20015,6 +20102,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
20015
20102
|
//#region Theme
|
|
20016
20103
|
/**
|
|
20017
20104
|
* 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).
|
|
20105
|
+
*
|
|
20106
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/save-custom-theme/ (linkStyle))
|
|
20018
20107
|
* @see showThemeTab
|
|
20019
20108
|
* @see saveThemeFunc
|
|
20020
20109
|
*/
|
|
@@ -20029,6 +20118,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
20029
20118
|
* 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.
|
|
20030
20119
|
*
|
|
20031
20120
|
* 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.
|
|
20121
|
+
*
|
|
20122
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/change-form-theme/ (linkStyle))
|
|
20032
20123
|
* @see showThemeTab
|
|
20033
20124
|
* @see themeEditor
|
|
20034
20125
|
* @see saveSurveyFunc
|
|
@@ -20446,6 +20537,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
20446
20537
|
* Specifies whether to show the sidebar that displays the Property Grid.
|
|
20447
20538
|
*
|
|
20448
20539
|
* Default value: `true`
|
|
20540
|
+
*
|
|
20541
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/customize-property-editors/ (linkStyle))
|
|
20449
20542
|
* @see sidebarLocation
|
|
20450
20543
|
*/
|
|
20451
20544
|
get: function () {
|
|
@@ -22054,6 +22147,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
22054
22147
|
};
|
|
22055
22148
|
/**
|
|
22056
22149
|
* Activates a specified category in Property Grid. Applies only if [`propertyGridNavigationMode`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#propertyGridNavigationMode) is `"buttons"`.
|
|
22150
|
+
*
|
|
22151
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/add-properties-to-property-grid/ (linkStyle))
|
|
22057
22152
|
* @param name A [category name](https://surveyjs.io/form-library/documentation/customize-question-types/add-custom-properties-to-a-form#category).
|
|
22058
22153
|
*/
|
|
22059
22154
|
SurveyCreatorModel.prototype.activatePropertyGridCategory = function (name) {
|
|
@@ -22656,6 +22751,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
22656
22751
|
* 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.
|
|
22657
22752
|
*
|
|
22658
22753
|
* 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.
|
|
22754
|
+
*
|
|
22755
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/ai-translation/ (linkStyle))
|
|
22659
22756
|
* @param locales An array of locale codes that correspond to target languages, for example, `[ "de", "fr" ]`.
|
|
22660
22757
|
*/
|
|
22661
22758
|
SurveyCreatorModel.prototype.startMachineTranslationTo = function (locales) {
|
|
@@ -22761,6 +22858,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
22761
22858
|
* 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.
|
|
22762
22859
|
*
|
|
22763
22860
|
* 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).
|
|
22861
|
+
*
|
|
22862
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/set-how-survey-configuration-changes-are-saved/ (linkStyle))
|
|
22764
22863
|
* @see saveThemeFunc
|
|
22765
22864
|
*/
|
|
22766
22865
|
get: function () {
|
|
@@ -45419,6 +45518,8 @@ var QuestionToolbox = /** @class */ (function (_super) {
|
|
|
45419
45518
|
};
|
|
45420
45519
|
/**
|
|
45421
45520
|
* Adds a new item to the Toolbox.
|
|
45521
|
+
*
|
|
45522
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/page-break-and-page-merge/ (linkStyle))
|
|
45422
45523
|
* @param item A [toolbox item configuration](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem).
|
|
45423
45524
|
* @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.
|
|
45424
45525
|
* @see removeItem
|
|
@@ -45497,6 +45598,8 @@ var QuestionToolbox = /** @class */ (function (_super) {
|
|
|
45497
45598
|
};
|
|
45498
45599
|
/**
|
|
45499
45600
|
* Returns a [toolbox item](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolboxitem) with a specified name.
|
|
45601
|
+
*
|
|
45602
|
+
* [View Toolbox Customization Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-customization/ (linkStyle))
|
|
45500
45603
|
* @param name A toolbox item's [`name`](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem#name).
|
|
45501
45604
|
* @returns A toolbox item or `null` if a toolbox item with the specified name isn't found.
|
|
45502
45605
|
*/
|
|
@@ -45513,6 +45616,8 @@ var QuestionToolbox = /** @class */ (function (_super) {
|
|
|
45513
45616
|
* If this property is `false`, the currently expanded category collapses when a user expands another category.
|
|
45514
45617
|
*
|
|
45515
45618
|
* Default value: `false`
|
|
45619
|
+
*
|
|
45620
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-categories/ (linkStyle))
|
|
45516
45621
|
* @see keepAllCategoriesExpanded
|
|
45517
45622
|
*/
|
|
45518
45623
|
get: function () {
|
|
@@ -45528,6 +45633,8 @@ var QuestionToolbox = /** @class */ (function (_super) {
|
|
|
45528
45633
|
Object.defineProperty(QuestionToolbox.prototype, "keepAllCategoriesExpanded", {
|
|
45529
45634
|
/**
|
|
45530
45635
|
* 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`.
|
|
45636
|
+
*
|
|
45637
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-categories/ (linkStyle))
|
|
45531
45638
|
* @see allowExpandMultipleCategories
|
|
45532
45639
|
*/
|
|
45533
45640
|
get: function () {
|
|
@@ -45547,7 +45654,9 @@ var QuestionToolbox = /** @class */ (function (_super) {
|
|
|
45547
45654
|
*
|
|
45548
45655
|
* Default value: `false`
|
|
45549
45656
|
*
|
|
45550
|
-
*
|
|
45657
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-categories/ (linkStyle))
|
|
45658
|
+
*
|
|
45659
|
+
* > 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.
|
|
45551
45660
|
* @see allowExpandMultipleCategories
|
|
45552
45661
|
* @see keepAllCategoriesExpanded
|
|
45553
45662
|
*/
|
|
@@ -45729,6 +45838,8 @@ var QuestionToolbox = /** @class */ (function (_super) {
|
|
|
45729
45838
|
};
|
|
45730
45839
|
/**
|
|
45731
45840
|
* Removes all categories from the Toolbox.
|
|
45841
|
+
*
|
|
45842
|
+
* [View Toolbox Customization Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-customization/ (linkStyle))
|
|
45732
45843
|
*/
|
|
45733
45844
|
QuestionToolbox.prototype.removeCategories = function () {
|
|
45734
45845
|
var allTypes = survey_core__WEBPACK_IMPORTED_MODULE_1__.ElementFactory.Instance.getAllToolboxTypes();
|
|
@@ -47961,7 +48072,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
47961
48072
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_116__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
47962
48073
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_116___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_116__);
|
|
47963
48074
|
var Version;
|
|
47964
|
-
Version = "".concat("2.0.
|
|
48075
|
+
Version = "".concat("2.0.9");
|
|
47965
48076
|
//should be loaded before other styles for easier override
|
|
47966
48077
|
|
|
47967
48078
|
|
|
@@ -48083,7 +48194,7 @@ Version = "".concat("2.0.7");
|
|
|
48083
48194
|
|
|
48084
48195
|
|
|
48085
48196
|
|
|
48086
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_116__.checkLibraryVersion)("".concat("2.0.
|
|
48197
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_116__.checkLibraryVersion)("".concat("2.0.9"), "survey-creator-core");
|
|
48087
48198
|
|
|
48088
48199
|
})();
|
|
48089
48200
|
|