@bigbinary/neeto-form-frontend 4.2.3 → 4.2.4
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/app/javascript/src/translations/en.json +1 -0
- package/dist/BuildForm.js +34 -17
- package/dist/BuildForm.js.map +1 -1
- package/dist/cjs/BuildForm.js +34 -17
- package/dist/cjs/BuildForm.js.map +1 -1
- package/dist/main.css +1 -1
- package/dist/main.css.map +1 -1
- package/package.json +8 -8
|
@@ -140,6 +140,7 @@
|
|
|
140
140
|
"hideQuestionHelpDescription": "When enabled, this question will not be visible in the created form. It can be used to track \"reference ids\" and UTM parameters.",
|
|
141
141
|
"responseVisibleOnlyToHostHelpDescription": "When enabled, the response to this question will only be visible to the host",
|
|
142
142
|
"readOnlyHelpDescription": "When enabled, the client will only be able to see the answer of this question, but will not be able to change the answer of this question. Since you are marking this question as \"read-only\" you should pre-fill the question with an answer.",
|
|
143
|
+
"fitImagesHelpDescription": "When enabled, images zoom to fill the entire space (some edges may get cut off). When disabled, the complete image is shown (may have empty space around it).",
|
|
143
144
|
"verifyHuman": "Verify that you are a human",
|
|
144
145
|
"pictureChoiceSettings": "Picture choice settings",
|
|
145
146
|
"addPicturesToOptions": "Add pictures to options",
|
package/dist/BuildForm.js
CHANGED
|
@@ -1918,23 +1918,31 @@ var Options = function Options(_ref) {
|
|
|
1918
1918
|
className: "mb-2 block"
|
|
1919
1919
|
}, optionLabelProps), {}, {
|
|
1920
1920
|
children: t("neetoForm.questions.common.questionFields.field.options")
|
|
1921
|
-
})), /*#__PURE__*/jsx(
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
bulkAddHelpDocUrl: bulkAddHelpDocUrl
|
|
1921
|
+
})), /*#__PURE__*/jsx("div", {
|
|
1922
|
+
className: classnames(["neeto-form-engine-fields-wrapper", {
|
|
1923
|
+
"neeto-form-engine-fields-wrapper--fit-image": values.shouldFitImages
|
|
1924
|
+
}]),
|
|
1925
|
+
style: {
|
|
1926
|
+
"--neeto-form-engine-picture-choice-image-height": "".concat(values.imageHeight, "px")
|
|
1928
1927
|
},
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1928
|
+
children: /*#__PURE__*/jsx(OptionFields, {
|
|
1929
|
+
isPictureChoice: isPictureChoice,
|
|
1930
|
+
name: name,
|
|
1931
|
+
shouldDestroy: true,
|
|
1932
|
+
bulkActionProps: {
|
|
1933
|
+
enabled: true,
|
|
1934
|
+
bulkAddHelpDocUrl: bulkAddHelpDocUrl
|
|
1935
|
+
},
|
|
1936
|
+
destroyFlagName: "_destroy",
|
|
1937
|
+
disabled: isManageOptionDisabled,
|
|
1938
|
+
draggable: !isManageOptionDisabled,
|
|
1939
|
+
isAddOptionEnabled: !isAddOptionDisabled,
|
|
1940
|
+
isDeleteOptionEnabled: !isRemoveOptionDisabled,
|
|
1941
|
+
isNewItemsPrefilled: isDefaultLanguage(selectedLanguage),
|
|
1942
|
+
minOptions: MINIMUM_OPTIONS,
|
|
1943
|
+
shouldResetEmptyOptionOnBlur: false,
|
|
1944
|
+
onChange: setOptionsAttributes
|
|
1945
|
+
})
|
|
1938
1946
|
})]
|
|
1939
1947
|
}), !isDropdown && isPictureChoiceEnabled && /*#__PURE__*/jsxs(Block, {
|
|
1940
1948
|
title: t("neetoForm.questions.common.questionFields.field.pictureChoiceSettings"),
|
|
@@ -1944,7 +1952,16 @@ var Options = function Options(_ref) {
|
|
|
1944
1952
|
}), isPictureChoice && /*#__PURE__*/jsxs(Fragment, {
|
|
1945
1953
|
children: [/*#__PURE__*/jsx(Switch, {
|
|
1946
1954
|
name: "shouldFitImages",
|
|
1947
|
-
label: t("neetoForm.questions.common.questionFields.field.fitImages")
|
|
1955
|
+
label: t("neetoForm.questions.common.questionFields.field.fitImages"),
|
|
1956
|
+
labelProps: {
|
|
1957
|
+
helpIconProps: {
|
|
1958
|
+
"data-testid": "fit-images-help-popover-button",
|
|
1959
|
+
popoverProps: {
|
|
1960
|
+
position: "top",
|
|
1961
|
+
description: t("neetoForm.questions.common.questionFields.field.fitImagesHelpDescription")
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1948
1965
|
}), /*#__PURE__*/jsxs("div", {
|
|
1949
1966
|
className: "mt-4",
|
|
1950
1967
|
children: [/*#__PURE__*/jsx(Typography, {
|