@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
package/dist/cjs/BuildForm.js
CHANGED
|
@@ -1939,23 +1939,31 @@ var Options = function Options(_ref) {
|
|
|
1939
1939
|
className: "mb-2 block"
|
|
1940
1940
|
}, optionLabelProps), {}, {
|
|
1941
1941
|
children: t("neetoForm.questions.common.questionFields.field.options")
|
|
1942
|
-
})), /*#__PURE__*/jsxRuntime.jsx(
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
bulkAddHelpDocUrl: bulkAddHelpDocUrl
|
|
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")
|
|
1949
1948
|
},
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
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
|
+
})
|
|
1959
1967
|
})]
|
|
1960
1968
|
}), !isDropdown && isPictureChoiceEnabled && /*#__PURE__*/jsxRuntime.jsxs(Block, {
|
|
1961
1969
|
title: t("neetoForm.questions.common.questionFields.field.pictureChoiceSettings"),
|
|
@@ -1965,7 +1973,16 @@ var Options = function Options(_ref) {
|
|
|
1965
1973
|
}), isPictureChoice && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1966
1974
|
children: [/*#__PURE__*/jsxRuntime.jsx(Switch, {
|
|
1967
1975
|
name: "shouldFitImages",
|
|
1968
|
-
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
|
+
}
|
|
1969
1986
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1970
1987
|
className: "mt-4",
|
|
1971
1988
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|