survey-creator-core 1.9.103 → 1.9.104
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/fonts.fontless.css +1 -1
- package/fonts.fontless.min.css +1 -1
- package/package.json +2 -2
- package/survey-creator-core.css +12 -6
- package/survey-creator-core.fontless.css +11 -5
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +3 -3
- package/survey-creator-core.i18n.js +4 -4
- package/survey-creator-core.i18n.js.map +1 -1
- package/survey-creator-core.i18n.min.js +2 -2
- package/survey-creator-core.js +50 -12
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +4 -4
- package/survey-creator-core.min.js +2 -2
- package/typings/components/tabs/logic-theme.d.ts +1 -0
- package/typings/components/tabs/theme-custom-questions/font-settings.d.ts +1 -1
- package/typings/components/tabs/translation-theme.d.ts +6 -0
- package/typings/editorLocalization.d.ts +1 -0
- package/typings/localization/english.d.ts +1 -0
- package/typings/questionconverter.d.ts +1 -0
package/survey-creator-core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v1.9.
|
|
2
|
+
* SurveyJS Creator v1.9.104
|
|
3
3
|
* (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* Github: https://github.com/surveyjs/survey-creator
|
|
5
5
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -2494,6 +2494,7 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
2494
2494
|
this.updateActionVisibility("convertTo", operationsAllow && options.allowChangeType);
|
|
2495
2495
|
this.updateActionVisibilityByProp("isrequired", "isRequired", operationsAllow && options.allowChangeRequired);
|
|
2496
2496
|
this.updateActionVisibilityByProp("convertInputType", "inputType", options.allowChangeInputType);
|
|
2497
|
+
this.updateActionVisibilityByProp("convertInputType", "rateDisplayMode", options.allowChangeInputType);
|
|
2497
2498
|
};
|
|
2498
2499
|
QuestionAdornerViewModel.prototype.updateActionVisibilityByProp = function (actionName, propName, allow) {
|
|
2499
2500
|
var prop = survey_core__WEBPACK_IMPORTED_MODULE_1__["Serializer"].findProperty(this.surveyElement.getType(), propName);
|
|
@@ -7213,6 +7214,7 @@ var logicCss = {
|
|
|
7213
7214
|
tableWrapper: "",
|
|
7214
7215
|
mainRoot: "sl-question st-row__question st-scrollable",
|
|
7215
7216
|
root: "sl-table st-matrixdynamic",
|
|
7217
|
+
noHeader: "",
|
|
7216
7218
|
row: "sl-table__row",
|
|
7217
7219
|
rowAdditional: "sl-table__row--additional",
|
|
7218
7220
|
cell: "sl-table__cell",
|
|
@@ -9952,6 +9954,14 @@ survey_core__WEBPACK_IMPORTED_MODULE_0__["ComponentCollection"].Instance.add({
|
|
|
9952
9954
|
titleLocation: "hidden",
|
|
9953
9955
|
descriptionLocation: "hidden"
|
|
9954
9956
|
},
|
|
9957
|
+
{
|
|
9958
|
+
type: "colorsettings",
|
|
9959
|
+
name: "placeholdercolor",
|
|
9960
|
+
colorTitle: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.placeholderColor"),
|
|
9961
|
+
colorTitleLocation: "left",
|
|
9962
|
+
titleLocation: "hidden",
|
|
9963
|
+
descriptionLocation: "hidden"
|
|
9964
|
+
},
|
|
9955
9965
|
{
|
|
9956
9966
|
type: "spinedit",
|
|
9957
9967
|
name: "size",
|
|
@@ -9967,6 +9977,8 @@ survey_core__WEBPACK_IMPORTED_MODULE_0__["ComponentCollection"].Instance.add({
|
|
|
9967
9977
|
onCreated: function (question) {
|
|
9968
9978
|
var color = question.contentPanel.getQuestionByName("color");
|
|
9969
9979
|
color.visible = question.name !== "surveyTitle";
|
|
9980
|
+
var placeholderColor = question.contentPanel.getQuestionByName("placeholdercolor");
|
|
9981
|
+
placeholderColor.visible = question.name === "editorFont";
|
|
9970
9982
|
},
|
|
9971
9983
|
onValueChanged: function (question, name, newValue) {
|
|
9972
9984
|
},
|
|
@@ -9978,7 +9990,7 @@ function fontsettingsToCssVariable(question, themeCssVariables) {
|
|
|
9978
9990
|
themeCssVariables["--sjs-font-" + question.name.toLocaleLowerCase() + "-" + key] = question.value[key] + (((_a = innerQ.unit) === null || _a === void 0 ? void 0 : _a.toString()) || "");
|
|
9979
9991
|
});
|
|
9980
9992
|
}
|
|
9981
|
-
function fontsettingsFromCssVariable(question, themeCssVariables, defaultColorVariable) {
|
|
9993
|
+
function fontsettingsFromCssVariable(question, themeCssVariables, defaultColorVariable, defaultPlaceholderColorVariable) {
|
|
9982
9994
|
var result = {};
|
|
9983
9995
|
Object.keys(themeCssVariables).filter(function (key) { return key.indexOf(question.name.toLocaleLowerCase()) !== -1; }).forEach(function (key) {
|
|
9984
9996
|
var propertyName = key.split("-").pop();
|
|
@@ -9987,8 +9999,13 @@ function fontsettingsFromCssVariable(question, themeCssVariables, defaultColorVa
|
|
|
9987
9999
|
if (Object.keys(result).length !== 0) {
|
|
9988
10000
|
question.value = result;
|
|
9989
10001
|
}
|
|
9990
|
-
else
|
|
9991
|
-
|
|
10002
|
+
else {
|
|
10003
|
+
if (!!defaultColorVariable) {
|
|
10004
|
+
question.contentPanel.getQuestionByName("color").value = defaultColorVariable;
|
|
10005
|
+
}
|
|
10006
|
+
if (!!defaultPlaceholderColorVariable) {
|
|
10007
|
+
question.contentPanel.getQuestionByName("placeholdercolor").value = defaultPlaceholderColorVariable;
|
|
10008
|
+
}
|
|
9992
10009
|
}
|
|
9993
10010
|
return result;
|
|
9994
10011
|
}
|
|
@@ -10816,7 +10833,7 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
10816
10833
|
Object(_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_8__["fontsettingsFromCssVariable"])(themeEditorSurvey.getQuestionByName("pageDescription"), newCssVariables, newCssVariables["--sjs-general-dim-forecolor-light"]);
|
|
10817
10834
|
Object(_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_8__["fontsettingsFromCssVariable"])(themeEditorSurvey.getQuestionByName("questionTitle"), newCssVariables, newCssVariables["--sjs-general-forecolor"]);
|
|
10818
10835
|
Object(_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_8__["fontsettingsFromCssVariable"])(themeEditorSurvey.getQuestionByName("questionDescription"), newCssVariables, newCssVariables["--sjs-general-forecolor-light"]);
|
|
10819
|
-
Object(_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_8__["fontsettingsFromCssVariable"])(themeEditorSurvey.getQuestionByName("editorFont"), newCssVariables, newCssVariables["--sjs-general-forecolor"]);
|
|
10836
|
+
Object(_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_8__["fontsettingsFromCssVariable"])(themeEditorSurvey.getQuestionByName("editorFont"), newCssVariables, newCssVariables["--sjs-general-forecolor"], newCssVariables["--sjs-general-forecolor-light"]);
|
|
10820
10837
|
if (!!newCssVariables["--sjs-corner-radius"]) {
|
|
10821
10838
|
themeEditorSurvey.getQuestionByName("cornerRadius").value = parseFloat(newCssVariables["--sjs-corner-radius"]);
|
|
10822
10839
|
}
|
|
@@ -11861,9 +11878,11 @@ var translationCss = {
|
|
|
11861
11878
|
mainRoot: "st-question st-row__question st-scrollable",
|
|
11862
11879
|
tableWrapper: "st-matrix",
|
|
11863
11880
|
root: "st-table",
|
|
11881
|
+
noHeader: "st-table--no-header",
|
|
11864
11882
|
rowError: "st-matrix__row--error",
|
|
11865
11883
|
cell: "st-table__cell st-matrix__cell",
|
|
11866
11884
|
headerCell: "st-table__cell st-table__cell--header",
|
|
11885
|
+
rowTextCell: "st-table__cell st-table__cell--row-text",
|
|
11867
11886
|
label: "st-item st-radio st-matrix__label",
|
|
11868
11887
|
itemValue: "st-visuallyhidden st-item__control st-radio__control",
|
|
11869
11888
|
itemChecked: "st-radio--checked",
|
|
@@ -11878,14 +11897,18 @@ var translationCss = {
|
|
|
11878
11897
|
matrixdropdown: {
|
|
11879
11898
|
mainRoot: "st-question st-row__question st-scrollable",
|
|
11880
11899
|
root: "st-table",
|
|
11900
|
+
noHeader: "st-table--no-header",
|
|
11881
11901
|
cell: "st-table__cell",
|
|
11882
|
-
headerCell: "st-table__cell st-table__cell--header"
|
|
11902
|
+
headerCell: "st-table__cell st-table__cell--header",
|
|
11903
|
+
rowTextCell: "st-table__cell st-table__cell--row-text"
|
|
11883
11904
|
},
|
|
11884
11905
|
matrixdynamic: {
|
|
11885
11906
|
mainRoot: "st-question st-row__question st-scrollable",
|
|
11886
11907
|
root: "st-table st-matrixdynamic",
|
|
11908
|
+
noHeader: "st-table--no-header",
|
|
11887
11909
|
cell: "st-table__cell",
|
|
11888
11910
|
headerCell: "st-table__cell st-table__cell--header",
|
|
11911
|
+
rowTextCell: "st-table__cell st-table__cell--row-text",
|
|
11889
11912
|
button: "st-btn",
|
|
11890
11913
|
detailRow: "st-table__row st-table__row--detail",
|
|
11891
11914
|
detailButton: "st-table__cell--detail-button",
|
|
@@ -18820,7 +18843,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18820
18843
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
18821
18844
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_69___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_69__);
|
|
18822
18845
|
var Version;
|
|
18823
|
-
Version = "" + "1.9.
|
|
18846
|
+
Version = "" + "1.9.104";
|
|
18824
18847
|
//should be loaded before other styles for easier override
|
|
18825
18848
|
__webpack_require__(/*! ../utils/context-button.scss */ "./src/utils/context-button.scss");
|
|
18826
18849
|
|
|
@@ -18908,7 +18931,7 @@ __webpack_require__(/*! ../utils/design.scss */ "./src/utils/design.scss");
|
|
|
18908
18931
|
__webpack_require__(/*! ../utils/layout.scss */ "./src/utils/layout.scss");
|
|
18909
18932
|
|
|
18910
18933
|
survey_core__WEBPACK_IMPORTED_MODULE_69__["settings"].supportCreatorV2 = true;
|
|
18911
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_69__["checkLibraryVersion"])("" + "1.9.
|
|
18934
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_69__["checkLibraryVersion"])("" + "1.9.104", "survey-creator-core");
|
|
18912
18935
|
|
|
18913
18936
|
|
|
18914
18937
|
/***/ }),
|
|
@@ -22013,6 +22036,7 @@ var enStrings = {
|
|
|
22013
22036
|
fontFamily: "Font family",
|
|
22014
22037
|
fontSize: "Font size",
|
|
22015
22038
|
color: "Color",
|
|
22039
|
+
placeholderColor: "Placeholder color",
|
|
22016
22040
|
size: "Size",
|
|
22017
22041
|
fontWeightRegular: "Regular",
|
|
22018
22042
|
fontWeightHeavy: "Heavy",
|
|
@@ -26661,6 +26685,7 @@ var PropertyGridEditorMatrix = /** @class */ (function (_super) {
|
|
|
26661
26685
|
});
|
|
26662
26686
|
};
|
|
26663
26687
|
PropertyGridEditorMatrix.prototype.createNewItem = function (matrix, prop) {
|
|
26688
|
+
matrix.visibleRows.forEach(function (row) { return row.hideDetailPanel(); });
|
|
26664
26689
|
var json = {};
|
|
26665
26690
|
var baseValue = this.getBaseValue(prop);
|
|
26666
26691
|
var keyPropName = this.getKeyValue();
|
|
@@ -28150,6 +28175,7 @@ var SurveyQuestionEditorDefinition = /** @class */ (function () {
|
|
|
28150
28175
|
{ name: "state", tab: "layout" },
|
|
28151
28176
|
{ name: "titleLocation", tab: "layout" },
|
|
28152
28177
|
{ name: "descriptionLocation", tab: "layout" },
|
|
28178
|
+
{ name: "errorLocation", tab: "layout" },
|
|
28153
28179
|
{ name: "indent", tab: "layout" },
|
|
28154
28180
|
{ name: "width", tab: "layout" },
|
|
28155
28181
|
{ name: "minWidth", tab: "layout" },
|
|
@@ -28211,7 +28237,9 @@ var SurveyQuestionEditorDefinition = /** @class */ (function () {
|
|
|
28211
28237
|
{ name: "columnLayout", tab: "layout" },
|
|
28212
28238
|
{ name: "horizontalScroll", tab: "layout" },
|
|
28213
28239
|
{ name: "columnColCount", tab: "layout" },
|
|
28214
|
-
{ name: "columnMinWidth", tab: "layout" }
|
|
28240
|
+
{ name: "columnMinWidth", tab: "layout" },
|
|
28241
|
+
{ name: "cellErrorLocation", tab: "layout" },
|
|
28242
|
+
{ name: "detailErrorLocation", tab: "layout" }
|
|
28215
28243
|
],
|
|
28216
28244
|
tabs: [
|
|
28217
28245
|
{ name: "columns", index: 10 },
|
|
@@ -28274,7 +28302,8 @@ var SurveyQuestionEditorDefinition = /** @class */ (function () {
|
|
|
28274
28302
|
multipletext: {
|
|
28275
28303
|
properties: [
|
|
28276
28304
|
{ name: "colCount", tab: "layout" },
|
|
28277
|
-
{ name: "itemSize", tab: "layout" }
|
|
28305
|
+
{ name: "itemSize", tab: "layout" },
|
|
28306
|
+
{ name: "itemErrorLocation", tab: "layout" }
|
|
28278
28307
|
],
|
|
28279
28308
|
tabs: [{ name: "items", index: 10 }]
|
|
28280
28309
|
},
|
|
@@ -28620,6 +28649,7 @@ var SurveyQuestionEditorDefinition = /** @class */ (function () {
|
|
|
28620
28649
|
{ name: "defaultPanelValue", tab: "data" },
|
|
28621
28650
|
{ name: "defaultValueFromLastPanel", tab: "data" },
|
|
28622
28651
|
{ name: "templateTitleLocation", tab: "layout" },
|
|
28652
|
+
{ name: "templateErrorLocation", tab: "layout" },
|
|
28623
28653
|
{ name: "panelRemoveButtonLocation", tab: "layout" },
|
|
28624
28654
|
{ name: "keyName", tab: "validation" },
|
|
28625
28655
|
{ name: "keyDuplicationError", tab: "validation" }
|
|
@@ -28635,7 +28665,8 @@ var SurveyQuestionEditorDefinition = /** @class */ (function () {
|
|
|
28635
28665
|
{ name: "visibleIf", tab: "logic" },
|
|
28636
28666
|
{ name: "enableIf", tab: "logic" },
|
|
28637
28667
|
{ name: "requiredIf", tab: "logic" },
|
|
28638
|
-
{ name: "questionTitleLocation", tab: "layout" }
|
|
28668
|
+
{ name: "questionTitleLocation", tab: "layout" },
|
|
28669
|
+
{ name: "questionErrorLocation", tab: "layout" }
|
|
28639
28670
|
],
|
|
28640
28671
|
tabs: [
|
|
28641
28672
|
{ name: "logic", index: 100 },
|
|
@@ -29270,9 +29301,16 @@ var QuestionConverter = /** @class */ (function () {
|
|
|
29270
29301
|
if (survey_core__WEBPACK_IMPORTED_MODULE_0__["Serializer"].isDescendantOf(convertToClass, "matrixdropdownbase") &&
|
|
29271
29302
|
survey_core__WEBPACK_IMPORTED_MODULE_0__["Serializer"].isDescendantOf(convertFromClass, "matrix") &&
|
|
29272
29303
|
json.columns) {
|
|
29273
|
-
json.columns = json.columns.map(function (col) { return ({
|
|
29304
|
+
json.columns = json.columns.map(function (col) { return ({
|
|
29305
|
+
name: QuestionConverter.getColumnName(col.value || col), title: col.text
|
|
29306
|
+
}); });
|
|
29274
29307
|
}
|
|
29275
29308
|
};
|
|
29309
|
+
QuestionConverter.getColumnName = function (val) {
|
|
29310
|
+
if (survey_core__WEBPACK_IMPORTED_MODULE_0__["Helpers"].isNumber(val))
|
|
29311
|
+
return "col" + val;
|
|
29312
|
+
return val;
|
|
29313
|
+
};
|
|
29276
29314
|
QuestionConverter.updateJSONForRating = function (json, convertToClass, defaultJSON) {
|
|
29277
29315
|
if (convertToClass === "rating" && json.choices) {
|
|
29278
29316
|
if (!defaultJSON || !defaultJSON.choices ||
|