@bigbinary/neeto-form-frontend 4.2.2 → 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 +36 -14
- package/dist/BuildForm.js.map +1 -1
- package/dist/cjs/BuildForm.js +36 -14
- 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
package/dist/cjs/BuildForm.js
CHANGED
|
@@ -1904,6 +1904,7 @@ var Options = function Options(_ref) {
|
|
|
1904
1904
|
}, shallow.shallow),
|
|
1905
1905
|
selectedLanguage = _useBuildFormStore.selectedLanguage,
|
|
1906
1906
|
isPictureChoiceEnabled = _useBuildFormStore.isPictureChoiceEnabled;
|
|
1907
|
+
var bulkAddHelpDocUrl = useHelpDoc("bulkAddOptions");
|
|
1907
1908
|
var _useFormikContext = formik.useFormikContext(),
|
|
1908
1909
|
values = _useFormikContext.values,
|
|
1909
1910
|
setFieldValue = _useFormikContext.setFieldValue;
|
|
@@ -1938,19 +1939,31 @@ var Options = function Options(_ref) {
|
|
|
1938
1939
|
className: "mb-2 block"
|
|
1939
1940
|
}, optionLabelProps), {}, {
|
|
1940
1941
|
children: t("neetoForm.questions.common.questionFields.field.options")
|
|
1941
|
-
})), /*#__PURE__*/jsxRuntime.jsx(
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1942
|
+
})), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1943
|
+
className: classnames(["neeto-form-engine-fields-wrapper", {
|
|
1944
|
+
"neeto-form-engine-fields-wrapper--fit-image": values.shouldFitImages
|
|
1945
|
+
}]),
|
|
1946
|
+
style: {
|
|
1947
|
+
"--neeto-form-engine-picture-choice-image-height": "".concat(values.imageHeight, "px")
|
|
1948
|
+
},
|
|
1949
|
+
children: /*#__PURE__*/jsxRuntime.jsx(OptionFields, {
|
|
1950
|
+
isPictureChoice: isPictureChoice,
|
|
1951
|
+
name: name,
|
|
1952
|
+
shouldDestroy: true,
|
|
1953
|
+
bulkActionProps: {
|
|
1954
|
+
enabled: true,
|
|
1955
|
+
bulkAddHelpDocUrl: bulkAddHelpDocUrl
|
|
1956
|
+
},
|
|
1957
|
+
destroyFlagName: "_destroy",
|
|
1958
|
+
disabled: isManageOptionDisabled,
|
|
1959
|
+
draggable: !isManageOptionDisabled,
|
|
1960
|
+
isAddOptionEnabled: !isAddOptionDisabled,
|
|
1961
|
+
isDeleteOptionEnabled: !isRemoveOptionDisabled,
|
|
1962
|
+
isNewItemsPrefilled: constants$1.isDefaultLanguage(selectedLanguage),
|
|
1963
|
+
minOptions: constants$1.MINIMUM_OPTIONS,
|
|
1964
|
+
shouldResetEmptyOptionOnBlur: false,
|
|
1965
|
+
onChange: setOptionsAttributes
|
|
1966
|
+
})
|
|
1954
1967
|
})]
|
|
1955
1968
|
}), !isDropdown && isPictureChoiceEnabled && /*#__PURE__*/jsxRuntime.jsxs(Block, {
|
|
1956
1969
|
title: t("neetoForm.questions.common.questionFields.field.pictureChoiceSettings"),
|
|
@@ -1960,7 +1973,16 @@ var Options = function Options(_ref) {
|
|
|
1960
1973
|
}), isPictureChoice && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1961
1974
|
children: [/*#__PURE__*/jsxRuntime.jsx(Switch, {
|
|
1962
1975
|
name: "shouldFitImages",
|
|
1963
|
-
label: t("neetoForm.questions.common.questionFields.field.fitImages")
|
|
1976
|
+
label: t("neetoForm.questions.common.questionFields.field.fitImages"),
|
|
1977
|
+
labelProps: {
|
|
1978
|
+
helpIconProps: {
|
|
1979
|
+
"data-testid": "fit-images-help-popover-button",
|
|
1980
|
+
popoverProps: {
|
|
1981
|
+
position: "top",
|
|
1982
|
+
description: t("neetoForm.questions.common.questionFields.field.fitImagesHelpDescription")
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1964
1986
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1965
1987
|
className: "mt-4",
|
|
1966
1988
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|