survey-creator-core 2.3.6 → 2.3.7
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 +24 -13
- 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 +7 -3
- package/survey-creator-core.fontless.css +6 -2
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +3 -3
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
- package/survey-creator-core.js +24 -13
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +4 -4
- 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/side-bar/side-bar-page-model.d.ts +2 -0
- package/typings/creator-base.d.ts +8 -1
- package/typings/creator-events-api.d.ts +18 -0
package/survey-creator-core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v2.3.
|
|
2
|
+
* SurveyJS Creator v2.3.7
|
|
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
|
|
@@ -4399,7 +4399,10 @@ var SidebarPageModel = /** @class */ (function (_super) {
|
|
|
4399
4399
|
}
|
|
4400
4400
|
Object.defineProperty(SidebarPageModel.prototype, "caption", {
|
|
4401
4401
|
get: function () {
|
|
4402
|
-
return _editorLocalization__WEBPACK_IMPORTED_MODULE_2__.editorLocalization.getString(this.locTileName);
|
|
4402
|
+
return this.captionValue || _editorLocalization__WEBPACK_IMPORTED_MODULE_2__.editorLocalization.getString(this.locTileName);
|
|
4403
|
+
},
|
|
4404
|
+
set: function (val) {
|
|
4405
|
+
this.captionValue = val;
|
|
4403
4406
|
},
|
|
4404
4407
|
enumerable: false,
|
|
4405
4408
|
configurable: true
|
|
@@ -9215,7 +9218,6 @@ var LogicItemEditor = /** @class */ (function (_super) {
|
|
|
9215
9218
|
name: "logicTypeName",
|
|
9216
9219
|
type: "dropdown",
|
|
9217
9220
|
renderAs: "logicoperator",
|
|
9218
|
-
searchEnabled: false,
|
|
9219
9221
|
allowClear: false,
|
|
9220
9222
|
title: _editorLocalization__WEBPACK_IMPORTED_MODULE_5__.editorLocalization.getString("pe.then"),
|
|
9221
9223
|
titleLocation: "left",
|
|
@@ -12086,7 +12088,8 @@ function initLogicOperator(question) {
|
|
|
12086
12088
|
question.popupModel.setWidthByTarget = false;
|
|
12087
12089
|
question.popupModel.positionMode = "flex";
|
|
12088
12090
|
question.popupModel.showPointer = true;
|
|
12089
|
-
question.
|
|
12091
|
+
question.searchEnabled = false;
|
|
12092
|
+
question.dropdownListModel["listModel"].searchEnabled = ["operator", "conjunction", "logicTypeName"].indexOf(question.name) === -1;
|
|
12090
12093
|
}
|
|
12091
12094
|
var LogicEvent = /** @class */ (function (_super) {
|
|
12092
12095
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(LogicEvent, _super);
|
|
@@ -12498,7 +12501,7 @@ var SurveyLogic = /** @class */ (function (_super) {
|
|
|
12498
12501
|
this.AddElements(itemValues, res);
|
|
12499
12502
|
};
|
|
12500
12503
|
SurveyLogic.prototype.isItemValueProp = function (prop) {
|
|
12501
|
-
return prop && ["itemvalue[]", "choiceitem[]", "checkboxitem[]"].indexOf(prop.type) > -1;
|
|
12504
|
+
return prop && ["itemvalue[]", "choiceitem[]", "checkboxitem[]", "matrixcolumn[]"].indexOf(prop.type) > -1;
|
|
12502
12505
|
};
|
|
12503
12506
|
SurveyLogic.prototype.AddElements = function (src, dest) {
|
|
12504
12507
|
for (var i = 0; i < src.length; i++) {
|
|
@@ -19949,6 +19952,11 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
19949
19952
|
* @see showTranslationTab
|
|
19950
19953
|
*/
|
|
19951
19954
|
_this.clearTranslationsOnSourceTextChange = false;
|
|
19955
|
+
/**
|
|
19956
|
+
* 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.
|
|
19957
|
+
* @see inplaceEditChoiceValues
|
|
19958
|
+
*/
|
|
19959
|
+
_this.onAllowInplaceEdit = _this.addCreatorEvent();
|
|
19952
19960
|
if (!!options2 ||
|
|
19953
19961
|
typeof _this.options === "string" ||
|
|
19954
19962
|
_this.options instanceof String) {
|
|
@@ -23634,6 +23642,11 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
23634
23642
|
enumerable: false,
|
|
23635
23643
|
configurable: true
|
|
23636
23644
|
});
|
|
23645
|
+
SurveyCreatorModel.prototype.isStringInplacelyEditable = function (element, stringName, item) {
|
|
23646
|
+
var options = { element: element, item: item, propertyName: stringName, allow: !this.readOnly && !!isStringEditable(element, stringName) };
|
|
23647
|
+
this.onAllowInplaceEdit.fire(this, options);
|
|
23648
|
+
return options.allow;
|
|
23649
|
+
};
|
|
23637
23650
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
23638
23651
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)({ defaultValue: true })
|
|
23639
23652
|
], SurveyCreatorModel.prototype, "showDesignerTab", void 0);
|
|
@@ -23859,14 +23872,14 @@ function initializeDesignTimeSurveyModel(model, creator) {
|
|
|
23859
23872
|
}
|
|
23860
23873
|
opt.data = opt.data || data;
|
|
23861
23874
|
});
|
|
23862
|
-
model.getRendererForString = function (element, name) {
|
|
23863
|
-
if (
|
|
23875
|
+
model.getRendererForString = function (element, name, item) {
|
|
23876
|
+
if (creator.isStringInplacelyEditable(element, name, item)) {
|
|
23864
23877
|
return editableStringRendererName;
|
|
23865
23878
|
}
|
|
23866
23879
|
return undefined;
|
|
23867
23880
|
};
|
|
23868
|
-
model.getRendererContextForString = function (element, locStr) {
|
|
23869
|
-
if (
|
|
23881
|
+
model.getRendererContextForString = function (element, locStr, item) {
|
|
23882
|
+
if (creator.isStringInplacelyEditable(element, locStr.name, item)) {
|
|
23870
23883
|
return {
|
|
23871
23884
|
creator: creator,
|
|
23872
23885
|
element: element,
|
|
@@ -36973,7 +36986,6 @@ var ConditionEditor = /** @class */ (function (_super) {
|
|
|
36973
36986
|
name: "conjunction",
|
|
36974
36987
|
type: "dropdown",
|
|
36975
36988
|
renderAs: "logicoperator",
|
|
36976
|
-
searchEnabled: false,
|
|
36977
36989
|
titleLocation: "hidden",
|
|
36978
36990
|
showOptionsCaption: false,
|
|
36979
36991
|
visibleIf: "{panelIndex} > 0",
|
|
@@ -36996,7 +37008,6 @@ var ConditionEditor = /** @class */ (function (_super) {
|
|
|
36996
37008
|
name: "operator",
|
|
36997
37009
|
type: "dropdown",
|
|
36998
37010
|
renderAs: "logicoperator",
|
|
36999
|
-
searchEnabled: false,
|
|
37000
37011
|
titleLocation: "hidden",
|
|
37001
37012
|
startWithNewLine: false,
|
|
37002
37013
|
showOptionsCaption: false,
|
|
@@ -48877,7 +48888,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
48877
48888
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_116__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
48878
48889
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_116___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_116__);
|
|
48879
48890
|
var Version;
|
|
48880
|
-
Version = "".concat("2.3.
|
|
48891
|
+
Version = "".concat("2.3.7");
|
|
48881
48892
|
//should be loaded before other styles for easier override
|
|
48882
48893
|
|
|
48883
48894
|
|
|
@@ -48999,7 +49010,7 @@ Version = "".concat("2.3.6");
|
|
|
48999
49010
|
|
|
49000
49011
|
|
|
49001
49012
|
|
|
49002
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_116__.checkLibraryVersion)("".concat("2.3.
|
|
49013
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_116__.checkLibraryVersion)("".concat("2.3.7"), "survey-creator-core");
|
|
49003
49014
|
|
|
49004
49015
|
})();
|
|
49005
49016
|
|